zcmd - unknown command - 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: zcmd - unknown command (
/showthread.php?tid=321770)
zcmd - unknown command -
Frapsy - 28.02.2012
Faced with a problem: in the case below, says Unknown command, if a player is not in this range. How do I fix it?
PHP Code:
CMD:enter(playerid,params[]) {
if(!IsPlayerConnected(playerid)) return true;
for(new i = 0; i != 5; i++) {
if(IsPlayerInRangeOfPoint(playerid,3.0,X[i],Y[i],Z[i])) {
SetPlayerPos(playerid,x,y,z);
return true;
}
}
return true;
}
Re: zcmd - unknown command - T0pAz - 28.02.2012
pawn Code:
CMD:enter( playerid, params[] )
{
if ( !IsPlayerConnected( playerid ) ) return(true);
for ( new i = 0; i != 5; i++ )
{
if ( IsPlayerInRangeOfPoint( playerid, 3.0, X[i], Y[i], Z[i] ) )
{
SetPlayerPos( playerid, x, y, z );
}
}
return(true);
}
Re: zcmd - unknown command -
Frapsy - 28.02.2012
Thank you very much, T0pAz.