Invalid Expression assumed zero , can't fix
#5

pawn Код:
if(Ccp[playerid] == 1)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 515 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER || 514 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER || 403 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            DisablePlayerCheckpoint(playerid);
            Ccp[playerid] = 2;
            SetPlayerCheckpoint(playerid,2784.6443,2585.3943,1 0.8203,3.0);
            SendClientMessage(playerid,COLOR_GREEN,"Kroviniai prikrauti. Vezkti i jusu tiksla");
            return 1;
        }
        else return SendClientMessage(playerid,COLOR_RED,"Jus turite buti sunkvezimyje");
    }
}
if(Ccp[playerid] == 2)
{
    new reward,string[128];
    DisablePlayerCheckpoint(playerid);
    Ccp[playerid] = 0;
    reward = GivePlayerMoney(playerid, GetPlayerMoney(playerid) + random(5000) + 1000);
    format(string,sizeof(string),"Jusu atlygis %iLt.", reward);
    SendClientMessage(playerid,COLOR_GOLD,string);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)