4
« on: February 16, 2012, 07:18:07 am »
[pawn]enum pInfo
TimeGoto,
}[/pawn]
[pawn] else if ( strcmp( cmd, "!goto", true ) == 0 )
{
tmp = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREY, "Usage: !goto [Nick/ID]" );
else
{
new plr = FindPlayerIDFromString( tmp );
if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_GREEN, "Error: Unknown player" );
else if ( PlayerInfo[ plr ][ NoGoto ] == 1 ) SendClientMessagef( playerid, COLOR_GREEN, "%s has goto Disabled.", strval( gPlayers[ plr ]) );
else if ( !IsPlayerSpawned( plr ) ) SendClientMessagef( playerid, COLOR_GREEN, "Error: %s does not spawned!", gPlayers[ plr ] );
else
{
format( szMsg, sizeof( szMsg ), "Teleporting:[ %s ] to:[ %s ]", gPlayers[ playerid ], gPlayers[ plr ] );
SendClientMessageToAll( COLOR_GREEN, szMsg );
SetTimer("SetGotoTimer",3000,0);
}
}
return 1;
}[/pawn]
in public i put these...
[pawn]public SetGotoTimer()
{
new plr;
GetPlayerPos( plr, x, y, z );
SetPlayerPos( playerid, x, y + 1.0, z, 0, 0 );
SendClientMessage(plr, GREEN,"Teleporting to player: %s.",gPlayers[plr]);
GameTextForPlayer(plr,"~h~Teleported!");
return 1;
}[/pawn]
And i getiing the error,
[pawn]\BSG.pwn(3959) : error 017: undefined symbol "x"
\BSG.pwn(3960) : error 017: undefined symbol "x"[/pawn]
So,what can i do to remove this....