Problem
#1

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 .

Код:
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;}
The problem is at this line

Код:
SetPlayerHealth(playerid,mhealth);
And i get this error
Код:
......DU.pwn(1614) : error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread
Problem - by Rock18 - 14.02.2011, 14:49
Re: Problem - by SkizzoTrick - 14.02.2011, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)