SA-MP Forums Archive
How to fix These error's? - 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: How to fix These error's? (/showthread.php?tid=493348)



How to fix These error's? - vulcanica - 08.02.2014

Quote:

C:\Users\Administrator\Downloads\Compressed\Base Empty MySql GM\Server\gamemodes\CLEANGM.pwn(2068 ) : error 021: symbol already defined: "PlayerInfo"
C:\Users\Administrator\Downloads\Compressed\Base Empty MySql GM\Server\gamemodes\CLEANGM.pwn(2912) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
C:\Users\Administrator\Downloads\Compressed\Base Empty MySql GM\Server\gamemodes\CLEANGM.pwn(2912) : warning 215: expression has no effect
C:\Users\Administrator\Downloads\Compressed\Base Empty MySql GM\Server\gamemodes\CLEANGM.pwn(2912) : error 001: expected token: ";", but found "]"
C:\Users\Administrator\Downloads\Compressed\Base Empty MySql GM\Server\gamemodes\CLEANGM.pwn(2912) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Downloads\Compressed\Base Empty MySql GM\Server\gamemodes\CLEANGM.pwn(2912) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Line 2068
Quote:

new PlayerInfo[MAX_PLAYERS][pInfo];

Line 2912
Quote:

if(PlayerInfo[playerid][pAdmin] >= 2 || playerid == MAX_PLAYERS)




Re: How to fix These error's? - Hostskool - 08.02.2014

Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
is defined 2 times in your script so, simply delete one.


Re: How to fix These error's? - vulcanica - 08.02.2014

Quote:
Originally Posted by Hostskool
Посмотреть сообщение
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
is defined 2 times in your script so, simply delete one.
Did you mean "#define Playerinfo" ?


Re: How to fix These error's? - Don_Cage - 08.02.2014

No, he mean that yhere are 2 lines that say new PlayerInfo[MAX_PLAYERS][pInfo];


Re: How to fix These error's? - vulcanica - 08.02.2014

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
No, he mean that yhere are 2 lines that say new PlayerInfo[MAX_PLAYERS][pInfo];
im found this with one line can't compiler ! Help me pls


Re: How to fix These error's? - Zarky - 08.02.2014

You already Used PlayerInfo[MAX_PLAYERS][pInfo] 2 times, thats what makes the error.

+

Can you post several lines after line 2912 so that i can help?