SA-MP Forums Archive
Easy help - 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: Easy help (/showthread.php?tid=535402)



Easy help - Gogeta101 - 03.09.2014

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;
}



Re: Easy help - iOxide - 03.09.2014

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