[Pomoč] Neće komanda

Započeo Obrisan korisnik
14. Sep. 2012.
416
pregleda
6
postova
Deleted User
Obrisan korisnik
14. Sep. 2012.
Skripta koju koristim: Majne-
Detaljan opis problema: Ukucam komandu a ona neće.
Dio skripte:
if(strcmp(cmd, "/driverlic", true) == 0)
{
    if(IsPlayerConnected(playerid))
        {
        if(PlayerToPoint(2.0, playerid, -2032.6464,-117.4462,1035.1719))
        {
              if(PlayerInfo == 0)
              {
                if(Otman_GetPlayerMoney(playerid) < 5000)
                {
                    format(string, sizeof(string), "License costs $5000, You don't have enough Money!");
                    SendClientMessage(playerid, COLOR_WHITE2, string);
                    return 1;
                }
                if(PlayerInfo == 1)
                {
                    format(string, sizeof(string), "Details: You already have a license");
                    SendClientMessage(playerid, COLOR_WHITE2, string);
                    return 1;
                }
                Otman_TakePlayerMoney(playerid,5000);
                DriverTest = 100;
                FadePlayerScreenToColor(playerid,COLOR_BLACK,6,200);
                SetTimerEx("ClearFade", 5000, false, "i", playerid);
                return 1;
}
            }
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Neznam gdje greÅ¡im. ☹️
Deleted User
Obrisan korisnik
14. Sep. 2012.
Imaš li ovaj public ClearFade?
Deleted User
Obrisan korisnik
14. Sep. 2012.
Imam, oću ti ga dati?
Deleted User
Obrisan korisnik
14. Sep. 2012.
Daj.
Deleted User
Obrisan korisnik
14. Sep. 2012.
Evo na engleskom:
public ClearFade(playerid)
{
    if(FadeDone == 1)
{
        FadePlayerScreen(playerid,BLACK,6,192);
        FadeDone = 0;
    Flight = 0;
        PlayerInfo = 1;
        PlaneSpawn = 1;
        UpdatePlayerInfo(playerid);
        SpawnPlayer(playerid);
}
    if(BuyCar == 1)
    {
        SetPlayerPos(playerid,-1646.9950,1222.9421,7.0391);
SetPlayerFacingAngle(playerid,137.6366);
        FadePlayerScreen(playerid,COLOR_PINKY,6,200);
        PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
        SetTimerEx("StopSond",7000, false,"i",playerid);
        BuyCar = 0;
        SendClientMessage(playerid,COLOR_GREEN,"||- Congratulations you've got yourself a brand new car -||");
}
if(BuyCar == 2)
    {
        SetPlayerPos(playerid,2148.0027,-1178.6327,23.8203);
SetPlayerFacingAngle(playerid,182.6657);
        FadePlayerScreen(playerid,COLOR_PINKY,6,200);
        PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
        SetTimerEx("StopSond",7000, false,"i",playerid);
        BuyCar = 0;
        SendClientMessage(playerid,COLOR_GREEN,"||- Congratulations you've got yourself a brand new car -||");
}
if(DriverTest == 100)
{
        FadePlayerScreen(playerid,BLACK,6,192);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,1267.9253,-1800.5354,13.4039);
        SendClientMessage(playerid, COLOR_BROWN, "||- You've done your theory, time for the driving test, please enter one of the school vehicles -||");
}
if(DriverTest == 200)
{
        SetPlayerPos(playerid,178.1042,-1923.9095,1.5648);
        SetPlayerInterior(playerid,0);
        FadePlayerScreen(playerid,BLACK,6,192);
        SendClientMessage(playerid, COLOR_BROWN, "||- You've now done your theory, time for the driving test, please enter one of the school boats -||");
}
if(DriverTest == 600)
{
        SetVehicleToRespawn(GetPlayerVehicleID(playerid));
        PlayerInfo = 1;
        SendClientMessage(playerid,COLOR_PINKY,"||- Congractulations you have earned the driver license -||");
        DriverTest = 0;
        TestTimer = 0;
        FadePlayerScreen(playerid,BLACK,6,192);
        new Float:pX, Float:pY, Float:pZ;
        GetPlayerPos(playerid,pX,pY,pZ);
        PlayerPlaySound(playerid,1056,pX,pY,pZ);
        PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
        SetTimerEx("StopMusic",5000, false,"i",playerid);
        UpdatePlayerInfo(playerid);
        return 1;
}
    if(DriverTest == 700)
{
        SetVehicleToRespawn(GetPlayerVehicleID(playerid));
        PlayerInfo = 0;
        SendClientMessage(playerid,COLOR_PINKY,"||- You have failed in the test, reason (vehicle damage's) -||");
        DriverTest = 0;
        TestTimer = 0;
        FadePlayerScreen(playerid,BLACK,6,192);
        new Float:pX, Float:pY, Float:pZ;
        GetPlayerPos(playerid,pX,pY,pZ);
        PlayerPlaySound(playerid,1056,pX,pY,pZ);
        return 1;
}
if(DriverTest == 300)
{
        SetVehicleToRespawn(GetPlayerVehicleID(playerid));
        new Float:pX, Float:pY, Float:pZ;
        GetPlayerPos(playerid,pX,pY,pZ);
        PlayerPlaySound(playerid,1056,pX,pY,pZ);
        SetPlayerPos(playerid,178.1042,-1923.9095,1.5648);
        FadePlayerScreen(playerid,BLACK,6,192);
        PlayerInfo = 1;
        LoopingAnim(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
        SetTimerEx("WalkTimer2",4000, false,"i",playerid);
        SendClientMessage(playerid,COLOR_PINKY,"||- Congractulations you have earned the sailing license -||");
        DriverTest = 0;
        TestTimer = 0;
        UpdatePlayerInfo(playerid);
        return 1;
    }
    if(DriverTest == 400)
{
        SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetPlayerPos(playerid,178.1042,-1923.9095,1.5648);
        new Float:pX, Float:pY, Float:pZ;
        GetPlayerPos(playerid,pX,pY,pZ);
        PlayerPlaySound(playerid,1056,pX,pY,pZ);
        FadePlayerScreen(playerid,BLACK,6,192);
        PlayerInfo = 0;
        LoopingAnim(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
        SetTimerEx("WalkTimer2",4000, false,"i",playerid);
        SendClientMessage(playerid,COLOR_PINKY,"You have failed in the test, reason (vehicle damage)");
        DriverTest = 0;
        TestTimer = 0;
        return 1;
}
return 1;
}
Deleted User
Obrisan korisnik
14. Sep. 2012.
Da li se komanda uopšte odaziva? Probaj sebi staviti 0 para pa onda kucat.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha