Getplayerhealth
#1

hello i use on my gm
pawn Код:
if(GetPlayerHealth(playerid)<100)
{
SetPlayerHealth(playerid, 100);
ShowPlayerDialog(playerid, 618, DIALOG_STYLE_INPUT, "", "Buy", "Close");// This is a comment          
}
and problem is to
pawn Код:
if(GetPlayerHealth(playerid)<100)
but this send me a error : warning 202: number of arguments does not match definition
how to fix this?
Reply
#2

ShowPlayerDialog(playerid, 618, DIALOG_STYLE_INPUT, "", "", "Buy", "Close");

these are the parameters of ShowPlayerDialog:
playerid, dialogid, style, caption[], info[], button1[], button2[]

you were missing one, info or caption parameter.
Reply
#3

problem is to if(GetPlayerHealth(playerid)<100)
Reply
#4

Quote:
Originally Posted by Configuration
Посмотреть сообщение
problem is to if(GetPlayerHealth(playerid)<100)
PHP код:
new float:h;
GetPlayerHealth(playerid,h);
if(
100)
{
//do something...

Reply
#5

GetPlayerHealth(playerid);
if(GetPlayerHealth(playerid) < 100)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)