08.04.2014, 14:58
Why do you declare a new variable that it will always be 0 when you can use playerid?
No, that will give warning 219: local variable "targetplayer" shadows a variable at a preceding level and another warning that "targetplayer" is never used.
pawn Код:
stock CheckAimingRobNPC(playerid)
{
for (new x = 1; x <= npcnum; x++)
{
if(playerid == robnpc[x])
{
return robnpc[x];
}
}
return INVALID_PLAYER_ID;
}