4 errors in one line -_- | Rep+ - 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)
+--- Thread: 4 errors in one line -_- | Rep+ (
/showthread.php?tid=407337)
4 errors in one line -_- | Rep+ -
Mr.Faqahat - 13.01.2013
Hello, i was making a Clan Detecting system from a FS in my GM .
Quote:
C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3562) : error 017: undefined symbol "PlayerInfo"
C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3562) : warning 215: expression has no effect
C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3562) : error 001: expected token: ";", but found "]"
C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3562) : error 029: invalid expression, assumed zero
C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3562) : fatal error 107: too many error messages on one line
|
and on line 3562
Quote:
PlayerInfo[playerid][pClan]=0;
|
Thanks in advance
i know im a nab lol
Re: 4 errors in one line -_- | Rep+ -
zJordioz - 13.01.2013
pawn Код:
(PlayerInfo [playerid][pClan] = 0);
Try that?
Re: 4 errors in one line -_- | Rep+ -
Mr.Faqahat - 13.01.2013
nah bro
here are surroundings
Quote:
SendClientMessage ( playerid , 0x00FF00AA , str ) ;
(PlayerInfo [playerid][pClan] = 0);
strins(nom,"[Put the clan tag here]",0,sizeof(nom));
SetPlayerName(pid,nom);
|
Re: 4 errors in one line -_- | Rep+ -
zJordioz - 13.01.2013
Got the correct includes and everything?
Re: 4 errors in one line -_- | Rep+ -
Mr.Faqahat - 13.01.2013
Yeap Same line is used one other place but no error in that :/
Re: 4 errors in one line -_- | Rep+ - Patrick - 13.01.2013
make sure you have a varaible on top like this
pawn Код:
new PlayerInfo[MAX_PLAYERS];
Re: 4 errors in one line -_- | Rep+ -
RenSoprano - 13.01.2013
You need to add enum
Код:
enum pInfo
{
pClan
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Re: 4 errors in one line -_- | Rep+ -
Mr.Faqahat - 13.01.2013
Quote:
Originally Posted by RenSoprano
You need to add enum
Код:
enum pInfo
{
pClan
}
new PlayerInfo[MAX_PLAYERS][pInfo];
|
REP++

D Thank you
Re: 4 errors in one line -_- | Rep+ -
LarzI - 13.01.2013
No offense to OP, but it disgust me seeing entirely new scripters using multi-dimensional arrays with enums holding the data. OP in this case has no idea what variables even are, as he just assumes that PlayerInfo will work as he has seen it in other scripts.
If you don't know what enums does, what multi-dimensional arrays does, simply avoid them until you know what they do.
Re: 4 errors in one line -_- | Rep+ -
u3ber - 13.01.2013
Quote:
Originally Posted by LarzI
No offense to OP, but it disgust me seeing entirely new scripters using multi-dimensional arrays with enums holding the data.
|
why would it disgust you?