/bring admin command problem
#1

Here is my /goto admin command:
Код:
dcmd_goto(playerid, params[])
{
  if(PlayerInfo[playerid][pAdminLevel] < 1)
  {
	SendClientMessage(playerid, COLOR_ORANGE,"This command is only for admins!");
  }
  else if(PlayerInfo[playerid][pAdminLevel] == 1)
  {
	SendClientMessage(playerid, COLOR_ORANGE,"Your level is 1,moderator.Moderators can't use goto command!");
  }
  else
  {
    new tmp[256], index, id;
    tmp = strtok(params, index);
    if(!strlen(tmp))
    {
      SendClientMessage(playerid, COLOR_ORANGE, "[GOTO] Usage: /goto [ID]");
    }
	id = strval(tmp);
	if(!IsPlayerConnected(id))
	{
	  SendClientMessage(playerid, COLOR_ORANGE, "[GOTO] This player is not connected!");
	}
	else if(id == playerid)
	{
	  SendClientMessage(playerid, COLOR_ORANGE, "[GOTO] This ID is yours!");
	{
	else
	{
	  new Float:X;
	  new Float:Z;
	  new Float:Y;
	  GetPlayerPos(id, X,Z,Y);
	  SetPlayerPos(playerid, X,Z,Y);
	}
  }
}
and I get so much errors:
Код:
C:\Users\Tadas\Desktop\SampServer\pawno\include\CheckpointManager.inc(242) : error 004: function "OnCheckpointEnter" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1124) : error 017: undefined symbol "isStringSame"
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1711) : error 017: undefined symbol "DropPlayerWeapons"
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1755) : error 004: function "TimeTextForPlayer" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1767) : error 004: function "TimeTextForPlayer" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1833) : error 004: function "TimeTextForPlayer" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1852) : error 004: function "TimeTextForPlayer" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1888) : error 004: function "TimeTextForPlayer" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1915) : error 004: function "TimeTextForPlayer" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(1939) : error 004: function "TimeTextForPlayer" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2053) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2158) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2314) : warning 217: loose indentation
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2315) : error 029: invalid expression, assumed zero
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2328) : warning 217: loose indentation
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2328) : error 029: invalid expression, assumed zero
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2328) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2333) : warning 225: unreachable code
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2333) : error 029: invalid expression, assumed zero
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2333) : error 004: function "OnCheckpointEnter" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2335) : error 017: undefined symbol "checkpointid"
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2504) : warning 225: unreachable code
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2504) : error 029: invalid expression, assumed zero
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2504) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2506) : error 017: undefined symbol "pickupid"
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2507) : error 017: undefined symbol "pickupid"
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2508) : error 017: undefined symbol "pickupid"
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2509) : error 017: undefined symbol "pickupid"
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2511) : error 017: undefined symbol "pickupid"
C:\Users\Tadas\Desktop\SampServer\gamemodes\ULSGW.pwn(2516) : error 017: undefined symbol "pickupid"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply


Messages In This Thread
/bring admin command problem - by aqu - 06.07.2011, 14:23
Re: /bring admin command problem - by Vince - 06.07.2011, 14:29
Re: /bring admin command problem - by aqu - 06.07.2011, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)