01.10.2011, 13:31
im having a very simple problem, im trying too add some /suicide but i got some errors
this is the 1st command healme
it work but when ill add this stuff it will have error.
here the error
this is the 1st command healme
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/heal", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 100); return 1; } return 0; }
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/heal", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 100); return 1; } if (strcmp("/suicide", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 0); return 1; } return 0; }
Код:
C:\Users\kyle\Desktop\tdm server\gamemodes\Untitled.pwn(149) : warning 217: loose indentation C:\Users\kyle\Desktop\tdm server\gamemodes\Untitled.pwn(154) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.