Posts: 88
Threads: 16
Joined: Oct 2017
Quote:
Originally Posted by Lucases
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new pid; if(IsPlayerCop(playerid)) if(newkeys == KEY_CROUCH) { new Float: x, Float:y, Float:z; GetPlayerPos(pid, x,y,z); for(new i=-1; i<MAX_PLAYERS, i++) error 001: expected token: ";", but found ")" { if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 2, x, y, z)) error 076: syntax error in the expression, or invalid function call { Arrest(pid); return 1; } } } else { SendClientMessage(playerid,COLOR_RED,"Not in range!"); } else { SendClientMessage(playerid,COLOR_RED,"Not a Cop!"); } return 1; }
|
errors