E:\\Documents and Settings\\Krisz\\Asztal\\-\\gamemodes\\Death_Divisors.pwn(151) : error 017: undefined symbol \"PlayerInfo\"
E:\\Documents and Settings\\Krisz\\Asztal\\-\\gamemodes\\Death_Divisors.pwn(151) : error 001: expected token: \";\", but found \"]\"
E:\\Documents and Settings\\Krisz\\Asztal\\-\\gamemodes\\Death_Divisors.pwn(151) : error 029: invalid expression, assumed zero
E:\\Documents and Settings\\Krisz\\Asztal\\-\\gamemodes\\Death_Divisors.pwn(151) : 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.
már müködik de nem rak be randomba zombiba :/
151 sor:
public OnPlayerSpawn(playerid)
{
PlayerInfo[random(OnlinePlayerek)]=ZOMBI;
if(gTeam[playerid] == HUNTER)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -327.1956,1534.4230,75.3594);
SetPlayerColor(playerid,HUNTERSZIN);
GivePlayerWeapon(playerid,27,500); //Combat Shotgun
GivePlayerWeapon(playerid,30,500); //AK-47
GivePlayerWeapon(playerid,24,500); //Desert Eagle
GivePlayerWeapon(playerid,4,500); //Kés
SetPlayerArmour(playerid, 100); //Páncél
SetPlayerTime(playerid, 0, 0);
SetPlayerWeather(playerid, 32);
}
else if(gTeam[playerid] == ZOMBI)
{
SetPlayerColor(playerid,ZOMBISZIN);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -317.0840,1752.0144,42.7404);
GivePlayerWeapon(playerid,4,500); //Kés
SetPlayerTime(playerid, 0, 0);
SetPlayerWeather(playerid, 32);
}
return 1;
}