[HELP] Command
#2

pawn Код:
if(strcmp(cmd, "/toys", true) == 0)
    {
        if(IsAToysCar(GetPlayerVehicleID(playerid)))
        {
            if(IsPlayerConnected(playerid))
            {
                if(PlayerInfo[playerid][pJob] != 18)
                {
                    SendClientMessage(playerid,COLOR_GREY,"* Ai pornit job-ul TOYS MAN !");
                    SendClientMessage(playerid,COLOR_GREY,"* Urmareste checkpointurile ca sa primesti banii !");
                    SendClientMessage(playerid,COLOR_GREY,"");
                    SendClientMessage(playerid,COLOR_GREY,"* Drum bun !");
                    SetPlayerCheckpoint(playerid, 1618.9779,-1830.1036,13.5311, 5.0);
                }
                else
                {
                    SendClientMessage(playerid,COLOR_GREY,"* You are not a TOYS MAN *");
                }
            }
        }
        else
        {
            SendClientMessage(playerid,COLOR_GREY,"* You are not in a car TOYS MAN *");
        }
 }
Problem was that you are using variable that you haven't define.
Reply


Messages In This Thread
[HELP] Command - by monster010 - 06.04.2014, 07:53
Re: [HELP] Command - by doreto - 06.04.2014, 07:55

Forum Jump:


Users browsing this thread: 3 Guest(s)