11.10.2014, 18:07
You probably all know me by now because this is my third time asking for help!
So, I was scripting a /heal command and it all bugged out, the command above it works perfectly so I have no idea what's wrong.
This is of both commands, the first one works fully:
ERROR CODES:
: error 021: symbol already defined: "OnPlayerCommandText"
: error 017: undefined symbol "SendPlayerHealth"
: error 035: argument type mismatch (argument 2)
So, I was scripting a /heal command and it all bugged out, the command above it works perfectly so I have no idea what's wrong.
This is of both commands, the first one works fully:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/SpawnM4", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 31, 10000); } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/heal", cmdtext, true, 10) == 0) { SendPlayerHealth(playerid, 100); SendClientMessage(playerid, "You have been healed!"); return 1; } return 0; }
: error 021: symbol already defined: "OnPlayerCommandText"
: error 017: undefined symbol "SendPlayerHealth"
: error 035: argument type mismatch (argument 2)