Variable 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)
+--- Thread: Variable Help (
/showthread.php?tid=458398)
Variable Help -
McBan - 16.08.2013
So I was basically making a command which is /admins and it shows the admins online and next to their name it says their status For Example:
Код:
Name: Jack_Digworth Level: 6 ( Available )
Name: James_Travis Level: 6 ( Busy )
Name: Hannah_Clarke Level: 6 ( AFK )
And I made a variable which is:
Код:
new PlayerInfo[playerid][Available];
However I get this error:
Код:
C:\Users\pc\Desktop\Documents\C-RP\gamemodes\U-RP.pwn.pwn(62177) : error 008: must be a constant expression; assumed zero
C:\Users\pc\Desktop\Documents\C-RP\gamemodes\U-RP.pwn.pwn(62177) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\pc\Desktop\Documents\C-RP\gamemodes\U-RP.pwn.pwn(62177) : error 036: empty statement
C:\Users\pc\Desktop\Documents\C-RP\gamemodes\U-RP.pwn.pwn(62177) : fatal error 107: too many error messages on one line
Line 62177 is:
Код:
new PlayerInfo[playerid][Available];
- Thanks
Re: Variable Help -
PrinceKumar - 16.08.2013
Create it in enums .