Author Topic: Very Tense Problem Here?  (Read 2281 times)

0 Members and 1 Guest are viewing this topic.

Offline faizan12345

  • Street Thug
  • *
  • Posts: 22
  • VV Developer
    • View Profile
Very Tense Problem Here?
« 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....


Offline faizan12345

  • Street Thug
  • *
  • Posts: 22
  • VV Developer
    • View Profile
Re: Very Tense Problem Here?
« Reply #1 on: February 16, 2012, 08:12:46 am »
By working hard now i know some pawn language...
I resolve it by my own means...
Very happy ;) ;D :o :-* :P