24.05.2017, 22:49
I have used to develop an admin status option so admins can put there current status or if they're available to assist players, I did all I could but few errors occured:
line 15567:
what have I done wrong?
Quote:
../gamemodes/core.pwn(15567) : error 028: invalid subscript (not an array or too many subscripts): "pStatus" ../gamemodes/core.pwn(15567) : error 029: invalid expression, assumed zero ../gamemodes/core.pwn(15567) : error 029: invalid expression, assumed zero ../gamemodes/core.pwn(15567) : fatal error 107: too many error messages on one line |
Quote:
stock GetPlayerStatus(playerid) { new string[10]; THE LINE - > switch(pStatus[playerid]) { case 0: strcat(string, "{4BB74C}Administrating"); case 1: strcat(string, "{FF0000}Roleplaying"); case 2: strcat(string, "{FF6600}Away From Keyboard"); default: strcat(string, "Unknown"); } return string; } |