30.03.2017, 03:04
ajuda ai gente eu peguei esse cmd da wiki pedia deu nisso
PHP код:
if(strcmp(cmdtext, "/doctor", true) == 0)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 50.0)
{
SetPlayerHealth(playerid, 50.0);
SendClientMessage(playerid, -1, "texto");
}
return 1;
}
PHP код:
C:\Projeto (CLS)\gamemodes\CLSRPG.pwn(444) : error 010: invalid function or declaration
C:\Projeto (CLS)\gamemodes\CLSRPG.pwn(447) : error 021: symbol already defined: "GetPlayerHealth"
C:\Projeto (CLS)\gamemodes\CLSRPG.pwn(448) : error 010: invalid function or declaration
C:\Projeto (CLS)\gamemodes\CLSRPG.pwn(453) : error 010: invalid function or declaration
C:\Projeto (CLS)\gamemodes\CLSRPG.pwn(456) : warning 203: symbol is never used: "health"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.