0 Membres et 1 Invité sur ce sujet
for(new i = 0; i<MAX_PLAYERS; i++)
Tout à fait gilux, ou le playertopoint fonctionne aussi, mais prefere IsPlayerInRangeOfPoint je pense que c'est mieux, comme c'est une fonction de sa:mp
if(strcmp(cmd, "/kill", true) == 0) { new Float:PX,Float:PY,Float:PZ; GetPlayerPos(playerid, PX, PY, PZ); for(new i = 0; i<MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 50.0, PX, PY, PZ);{ SetPlayerHealth(i, 0); } } }
error 036: empty statement
if(IsPlayerInRangeOfPoint(i, 50.0, PX, PY, PZ));