Alot of errors help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Alot of errors help (
/showthread.php?tid=269424)
Alot of errors help -
sanrock - 16.07.2011
Код:
259: public OnPlayerRequestClass(playerid, classid)
260:{
261: gPlayerClass[playerid] = classid;
262:
263: switch (classid)
{
case 0:
{
gTeam[playerid] = TEAM_Party;
GameTextForPlayer(playerid, "~g~Party", 1000, 6);
}
case 1:
{
gTeam[playerid] = TEAM_Guard;
GameTextForPlayer(playerid, "~r~Guard", 1000, 6);
then it says for errors
Код:
C:\Users\Jo\Desktop\samp server\gamemodes\test.pwn(261) : error 017: undefined symbol "gPlayerClass"
C:\Users\Jo\Desktop\samp server\gamemodes\test.pwn(261) : warning 215: expression has no effect
C:\Users\Jo\Desktop\samp server\gamemodes\test.pwn(261) : error 001: expected token: ";", but found "]"
C:\Users\Jo\Desktop\samp server\gamemodes\test.pwn(261) : error 029: invalid expression, assumed zero
C:\Users\Jo\Desktop\samp server\gamemodes\test.pwn(261) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
any help please?
Re: Alot of errors help -
ScRaT - 16.07.2011
top of the gm
new gPlayerClass[MAX_PLAYERS];
Re: Alot of errors help -
sanrock - 16.07.2011
i have but it not working
Re: Alot of errors help -
sanrock - 16.07.2011
please this is fro somones bday i need to do this