Need Help with this please
#1

Hi i am having trouble. can you set if this is right?

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;
}

this is the compilation
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

Reply


Messages In This Thread
Need Help with this please - by Artix - 29.03.2011, 17:09
Re: Need Help with this please - by iCMDX - 29.03.2011, 17:15
Re: Need Help with this please - by Artix - 29.03.2011, 17:20
Re: Need Help with this please - by -Rebel Son- - 29.03.2011, 17:34
Re: Need Help with this please - by Mr_Scripter - 29.03.2011, 17:35
Re: Need Help with this please - by Medal Of Honor team - 29.03.2011, 17:36
Re: Need Help with this please - by -Rebel Son- - 29.03.2011, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)