Help plese. errors
#5

now why this?
Код:
C:\Users\Bart\Desktop\SAMP FRESH LIFE\filterscripts\ladmin4v2.pwn(4819) : error 017: undefined symbol "player1"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I have the player1 defined.
It worked earlier



now this code:
Код:
dcmd_setlspd(playerid, params[])
{
if(PlayerInfo[playerid][LSPDLEVEL] >= 8) {
new tmp[256], tmp2[256], Index;
   tmp = strtok(params,Index),
   tmp2 = strtok(params,Index);
   if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /setlspd [playerid] [level]");
   new player1, level, playername[MAX_PLAYER_NAME], string[128];
   player1 = strval(tmp);
   if(!strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setlspd [playerid] [level]");
   level = strval(tmp2);
   GetPlayerName(player1,playername,sizeof(playername));
  format(string,sizeof(string),"You have made %s LSPD Level %d",playername,level);
  SendClientMessage(playerid,red,string);
	PlayerInfo[player1][LSPDLEVEL] = level;
	format(string,sizeof(string),"You are now LSPD rank %d",level);
	SendClientMessage(player1,red,string);
} else if(PlayerInfo[playerid][LSPDLEVEL] <= 7 && PlayerInfo[playerid][LSPDLEVEL] >= 1) { SendClientMessage(playerid,red,"You are not a lspd CL or HL"); } else

if(PlayerInfo[player1][LSPDLEVEL] <= 0) { SendClientMessage(playerid,red,"This is not your member"); }
return 1;
}
Reply


Messages In This Thread
Help plese. errors - by bartje01 - 30.05.2010, 20:55
Re: Help plese. errors - by Conroy - 30.05.2010, 20:59
Re: Help plese. errors - by bartje01 - 30.05.2010, 21:21
Re: Help plese. errors - by Conroy - 30.05.2010, 21:37
Re: Help plese. errors - by bartje01 - 30.05.2010, 21:42
Re: Help plese. errors - by Conroy - 30.05.2010, 21:45
Re: Help plese. errors - by bartje01 - 30.05.2010, 21:48
Re: Help plese. errors - by Conroy - 30.05.2010, 21:52
Re: Help plese. errors - by bartje01 - 30.05.2010, 21:53
Re: Help plese. errors - by Conroy - 30.05.2010, 22:00

Forum Jump:


Users browsing this thread: 3 Guest(s)