CMD problem?
#1

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.");
            }
        }
    }
Reply
#2

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)