Stupid error.. - 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: Stupid error.. (
/showthread.php?tid=218658)
Stupid error.. -
ThePwherer - 30.01.2011
I have done a correct gteam script and everything but pawno keeps saying theres an error with this..
public OnPlayerRequestClass(playerid, classid)
{
ERROR:gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
gTeam[playerid] = TEAM_CT;
GameTextForPlayer(playerid, "~b~CounterTerorists", 1000, 6);
}
case 1:
{
gTeam[playerid] = TEAM_TERORISTS;
GameTextForPlayer(playerid, "~r~Terorists", 1000, 6);
}
error 017: undefined symbol "gPlayerClass"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Plz Help.
Re: Stupid error.. -
Raimis_R - 30.01.2011
new gPlayerClass; or somethink like