Skripta koju koristim: GF
Detaljan opis problema: Ove errore nikako da resim
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Evo errora:
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8923) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8941) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8958) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8972) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8987) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(9002) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(30538) : error 017: undefined symbol "Phone"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(30538) : warning 215: expression has no effect
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(30538) : error 001: expected token: ";", but found "]"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(30538) : error 029: invalid expression, assumed zero
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(30538) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Daj nam linije na kojim se erori pokazuju
Resio sam ovo s Mobom i to
Ostali su ovi :
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8923) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8941) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8958) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8972) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8987) : error 017: undefined symbol "Max_Players"
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(9002) : error 017: undefined symbol "Max_Players"
A evo redova od toga :
public ABroadCast(color,const string[],level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pAdmin] >= level || PlayerInfo[i][pGameMaster] >= level)
{
SendClientMessage(i, color, string);
printf("%s", string);
}
}
}
return 1;
}
public GBroadCast(color,const string[],level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pGameMaster] >= level)
{
SendClientMessage(i, color, string);
printf("%s", string);
}
}
}
return 1;
}
public OOCOff(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!gOoc[i])
{
SendClientMessage(i, color, string);
}
}
}
}
public OOCNews(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!gNews[i])
{
SendClientMessage(i, color, string);
}
}
}
}
public SendTeamMessage(team, color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == team)
{
SendClientMessage(i, color, string);
}
}
}
}
public SendRadioMessage(member, color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == member || PlayerInfo[i][pLeader] == member)
{
SendClientMessage(i, color, string);
}
}
}
}
public SendJobMessage(job, color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pJob] == job)
{
SendClientMessage(i, color, string);
}
}
}
}
public SendNewFamilyMessage(family, color, string[])
{
for(new i = 0; i < Max_Players
; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pFMember] == family)
{
if(!gFam[i])
{
SendClientMessage(i, color, string);
}
}
}
}
}
public SendFamilyMessage(family, color, string[])
{
for(new i = 0; i < Max_Players; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == family || PlayerInfo[i][pLeader] == family)
{
if(!gFam[i])
{
SendClientMessage(i, color, string);
}
}
}
}
}
public SendIRCMessage(channel, color, string[])
{
for(new i = 0; i < Max_Players; i++)
{
if(IsPlayerConnected(i))
{
if(PlayersChannel[i] == channel)
{
SendClientMessage(i, color, string);
}
}
}
}
public SendTeamBeepMessage(team, color, string[])
{
for(new i = 0; i < Max_Players; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == team)
{
SendClientMessage(i, color, string);
RingTone[i] = 20;
}
}
}
}
public SendEnemyMessage(color, string[])
{
for(new i = 0; i < Max_Players; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] >= 3)
{
SendClientMessage(i, color, string);
}
}
}
}
public SendAdminMessage(color, string[])
{
for(new i = 0; i < Max_Players; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1)
{
SendClientMessage(i, color, string);
}
}
}
}
Dodaj ovo na vrhu:
#define MAX_PLAYERS
Max_players
ili
MAX_PLAYERS
??
Citat: Jure.pwn poslato Februar 11, 2012, 17:55:35 POSLE PODNE
Dodaj ovo na vrhu:
#define MAX_PLAYERS
lol
Citat: Windfaker poslato Februar 11, 2012, 17:59:47 POSLE PODNE
MAX_PLAYERS je :S
EDIT: Reseno je ovo sad mi ovo ostalo
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8925) : error 029: invalid expression, assumed zero
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8942) : error 029: invalid expression, assumed zero
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8959) : error 029: invalid expression, assumed zero
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8973) : error 029: invalid expression, assumed zero
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(8988) : error 029: invalid expression, assumed zero
C:\Users\Domagoj's\Desktop\GothFahterElvis\GothFahterJohnny\gamemodes\GodFather.pwn(9003) : error 029: invalid expression, assumed zero
EDIT 2: Da ne otvaram novu temu sta s ovim kad idem samp-server.exe
[18:03:52] I couldn't load any gamemode scripts. Please verify your server.cfg
[18:03:52] It needs a gamemode0 line at the very least.
cim imas errore,nemas amx od moda, bez errora bi trebao bit, tj. tu ti pokazuje da ne moze ocitat gamemode
a za ostalo daj linije
gore vjerovatno imas definisan MAX_PLAYERS a ne Max_Players ..bitna su i velika i mala slova :)
prepravi gdje ti pise Max_Players u MAX_PLAYERS i onda pokusaj