31.12.2010, 14:08
Hey
why getting errors?
Code:
Errors:
why getting errors?
Code:
Quote:
new pGod; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/god", cmdtext, true, 10) == 0) { if(pGod[playerid] == 0) { pGod[playerid] = 1; SetPlayerHealth(playerid,100000); SendClientMessage(playerid, 0xFFFF2AFF,"Godmode ON"); } else { pGod[playerid] = 0; SendClientMessage(playerid, 0xFFFF2AFF,"Godmode OFF"); SetPlayerHealth(playerid, 100); } return 1; } return 0; } |
Quote:
C:\Documents and Settings\$unny\Desktop\sss.pwn( : error 028: invalid subscript (not an array or too many subscripts): "pGod" C:\Documents and Settings\Linus\Desktop\sss.pwn( : warning 215: expression has no effect C:\Documents and Settings\Linus\Desktop\sss.pwn( : error 001: expected token: ";", but found "]" C:\Documents and Settings\Linus\Desktop\sss.pwn( : error 029: invalid expression, assumed zero C:\Documents and Settings\Linus\Desktop\sss.pwn( : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |