warning 202: number of arguments does not match definition
#2

Strcat concats i.e. joins two "strings" so you cannot format a string in the function there itself... Your code should be like

Код:
new str[10];
format(str,sizeof(str),"%f",GetPlayerHealth(playerid)); //change line here with %f not %d as health is always a real number
strcat(string,str);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)