Variable Help
#1

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
Reply
#2

Create it in enums .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)