14.04.2012, 14:27
Cant find any errors in the command, better show those lines.
EDIT:try this [Fixed]
EDIT:try this [Fixed]
pawn Код:
if(strcmp( "/goto", cmdtext, true) == 0)
{
new tmp[256],idx;
tmp = strtok( cmdtext, idx );
if ( !strlen( tmp ) ) { return 1; }
new Float:X, Float:Y, Float:Z; // <<< 1588
if ( GetPlayerVehicleID( playerid ) )
{
GetPlayerPos( strval(tmp), X, Y, Z ); // <<< 1592
SetVehiclePos( GetPlayerVehicleID(playerid), X+2, Y+2, Z );
} else {
GetPlayerPos( strval(tmp), X, Y, Z ); // <<< 1595
SetPlayerPos( playerid, X+2, Y+2, Z );
}
return 1;
}