16.04.2012, 02:44
Quote:
|
Cant find any errors in the command, better show those lines.
EDIT:try this [Fixed] pawn Код:
|
C:\Users\Zerjoe\Desktop\0.3e\gamemodes\zmthai.pwn( 1589) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Zerjoe\Desktop\0.3e\gamemodes\zmthai.pwn( 1593) : error 035: argument type mismatch (argument 4)
C:\Users\Zerjoe\Desktop\0.3e\gamemodes\zmthai.pwn( 1596) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
pawn Код:
if(strcmp( "/goto", cmdtext, true) == 0)
{
new tmp[256],idx; [B]<<< 1584 [/B]
tmp = strtok( cmdtext, idx );
if ( !strlen( tmp ) ) { return 1; }
new Float:X, Float:Y, Float:Z; [B]<<< 1589[/B]
if ( GetPlayerVehicleID( playerid ) )
{
GetPlayerPos( strval(tmp), X, Y, Z ); [B] <<< 1593[/B]
SetVehiclePos( GetPlayerVehicleID(playerid), X+2, Y+2, Z );
} else {
GetPlayerPos( strval(tmp), X, Y, Z ); [B]<<< 1596[/B]
SetPlayerPos( playerid, X+2, Y+2, Z );
}
return 1;
}


