29.03.2011, 17:09
Hi i am having trouble. can you set if this is right?
this is the compilation
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/CHEATS", cmdtext, true, 10) == 0) { { if(IsPlayerAdmin)) } SendClientMessage(playerid, WHITE,"SERVER: Cheats Activated"); SetPlayerHealth(playerid,1000000000000); SetPlayerArmour(playerid,1000000000000); GivePlayerWeapon(playerid,38,10000000); { else } SendClientMessage(playerid, RED," SERVER YOU ARE NOT ALLOWED TO USE THAT COMMAND"); return 1; } return 0; } |
Quote:
C:\Users\Daniel\Desktop\SAMP\Server\gamemodes\ccrp .pwn(163) : error 076: syntax error in the expression, or invalid function call C:\Users\Daniel\Desktop\SAMP\Server\gamemodes\ccrp .pwn(163) : error 029: invalid expression, assumed zero C:\Users\Daniel\Desktop\SAMP\Server\gamemodes\ccrp .pwn(170) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |