Easy help
#1

new AdminDuty[MAX_PLAYERS];
warning 211: possibly unintended assignment



pawn Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
    if(AdminDuty[playerid] = 0) return SendClientMessage(playerid,COLOR_YELLOW,"You need to be onduty to use this command");
    if(Player[playerid] [pAdmin] >=1)
    {
        SetPlayerPosFindZ(playerid,fX,fY,fY);
    }
    else
    {
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:GPS Location marked in map.");
    }
    return 1;
}
Reply
#2

if(AdminDuty[playerid] == 0) you missed another '=' thats why.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)