17.02.2008, 03:25
here is a command i tried to make it is pretty simple but i don't know how to do it could anyone tell me specificly how to do it? this is what i got
as you can probably see i have tried to make a command when you type /godmode if your health goes below 100 it will set health back to 100 but it doesent work here are the errors
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/GodMode",true)==0) { GetPlayerHealth(playerid); if(health <100) SetPlayerHealth(playerid,100); return 1;}
Код:
C:\samp022server.win32\gamemodes\DM.pwn(752) : error 017: undefined symbol "health" C:\samp022server.win32\gamemodes\DM.pwn(753) : error 017: undefined symbol "health" C:\samp022server.win32\gamemodes\DM.pwn(763) : error 076: syntax error in the expression, or invalid function call C:\samp022server.win32\gamemodes\DM.pwn(795) : warning 202: number of arguments does not match definition C:\samp022server.win32\gamemodes\DM.pwn(796) : error 017: undefined symbol "health" C:\samp022server.win32\gamemodes\DM.pwn(2156) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.