SA-MP Forums Archive
CMD problem? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CMD problem? (/showthread.php?tid=345942)



CMD problem? - N0FeaR - 26.05.2012

Error i get, can you guys see the problem here?

Код:
C:\Users\Hellman\Desktop\Rebound Roleplay server\gamemodes\RGRP.pwn(7139 -- 7140) : error 076: syntax error in the expression, or invalid function call
pawn Код:
}
    if(strcmp("/truck", cmd, true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pJob] == 9)
            {
                if(PlayerInfo[playerid][pCanJob] == 25)
                {
            line 7139       SendClientMessage(playerid, COLOR_WHITE, "You cannot work anymore, wait untill next payday.");
                    return 1;
                }
                new veh = GetPlayerVehicleID(playerid);
                if(!IsTrailerAttachedToVehicle(veh))
                {
                    SendClientMessage(playerid,COLOR_GRAD2,"  You need a trailer attached first.");
                    return 1;
                }
                if(TruckDelivering[playerid] == 0)
                {
                    TruckDelivering[playerid] = 2;
                    OnPlayerEnterCheckpoint(playerid);
                    //AttachTrailerToVehicle(Trailer[playerid], veh);
                }
                else
                {
                    DisablePlayerCheckpoint(playerid);
                    TruckDelivering[playerid] = 0;
                    SendClientMessage(playerid,COLOR_GRAD2,"  You have stopped the delivery.");
                }
            }
            else
            {
                SendClientMessage(playerid,COLOR_GRAD2,"  You are not trucker.");
            }
        }
    }



Re: CMD problem? - TzAkS. - 26.05.2012

Are you sure that`s the line?
I don`t think so..also try to change COLOR_WHITE with -1,-1 is white color..maybe you defined wrong COLOR_WHITE


Re: CMD problem? - CidadeNovaRP - 26.05.2012

SendClientMessage(playerid, -1, "You cannot work anymore, wait untill next payday.");
-1 = COLOR_WHITE