28.07.2010, 20:18
I'm making a system were if someone has a curtain amount of kills, they get curtain weapons, but I'm getting errors which I need help with.
The script is this:
The errors:
Line 324 is the bold one:
The script is this:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][Kills] == 0)
{
GivePlayerWeapon(playerid,24,3000);
}
if(PlayerInfo[playerid][Kills] == 50)
{
GivePlayerWeapon(playerid,24,3000);
GivePlayerWeapon(playerid,25,3000);
}
SetPlayerToTeamColor(playerid);
return 1;
}
pawn Код:
C:\Users\Johnny\Desktop\Urban TDM\gamemodes\UTDM.pwn(324) : error 017: undefined symbol "PlayerInfo"
C:\Users\Johnny\Desktop\Urban TDM\gamemodes\UTDM.pwn(324) : warning 215: expression has no effect
C:\Users\Johnny\Desktop\Urban TDM\gamemodes\UTDM.pwn(324) : error 001: expected token: ";", but found "]"
C:\Users\Johnny\Desktop\Urban TDM\gamemodes\UTDM.pwn(324) : error 029: invalid expression, assumed zero
C:\Users\Johnny\Desktop\Urban TDM\gamemodes\UTDM.pwn(324) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Quote:
public OnPlayerSpawn(playerid) { if(PlayerInfo[playerid][Kills] == 0) { GivePlayerWeapon(playerid,24,3000); } if(PlayerInfo[playerid][Kills] == 50) { GivePlayerWeapon(playerid,24,3000); GivePlayerWeapon(playerid,25,3000); } SetPlayerToTeamColor(playerid); return 1; } |