14.02.2011, 14:49
Hey i have a problem with my command , it's not the first time when i make this command but this time i get 1 error , i tryed to figure out what the problem is but didn't succeded .
The problem is at this line
And i get this error
Код:
COMMAND:myhealth(playerid, params[ ] ){
new mhealth[128], newhealth = strval(mhealth);
if (( newhealth < 0) || ( newhealth > 101) || IsInvalidHealth( newhealth)){
SendClientMessage(playerid, COLOR_RED, "Ai depasit limita de viata !");
return 1;}
if(sscanf(params,"d", mhealth)) return SendClientMessage(playerid,COLOR_WHITE,"Folosire: /myhealth <1-100>");
SetPlayerHealth(playerid,mhealth);
return 1;}
Код:
SetPlayerHealth(playerid,mhealth);
Код:
......DU.pwn(1614) : error 035: argument type mismatch (argument 2)

