Help error 001: expected token: ";", but found "-identifier-"
#1

error 001: expected token: ";", but found "-identifier-"

Quote:

public vitals(playerid)
{
new string[5];
new FloatHealth

GetPlayerHealth(playerid,pHealth);
format(string, sizeof(string), "%.0f%", pHealth);
TextDrawSetString(Health[playerid], string);
}

You managed to help me

I would love reputation
Reply
#2

(1156) : error 001: expected token: ";", but found "-identifier-"

Quote:

GetPlayerHealth(playerid,pHealth); << 1156

Reply
#3

Try this :

PHP код:
public vitals(playerid)
{
    new 
string[5];
    new 
Float:Health;
    
GetPlayerHealth(playerid,pHealth);
    
format(stringsizeof(string), "%.0f%"pHealth);
    
TextDrawSetString(Health[playerid], string);

Reply
#4

Thanks bro

Nice work

Rep++
Reply
#5

You're welcome , always gotta be careful for them little typos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)