Format warning?
#1

Yah hallo guys.
I hate warnings so that's why I'm askin for help nauw.

// Warning is on the format line
Код:
new wstring[256];
format(wstring, sizeof(wstring), "[General:] Name: %s - Health: %.1f - Cash: $%d - Score: %d",PlayerName(targetid),GetPlayerHealth(targetid),GetPlayerMoneyEx(targetid),PlayerInfo[targetid][pScore]);
Код:
C:\Users\something.pwn(1134) : warning 202: number of arguments does not match definition
Reply
#2

Firstly, I don't recommend you using 256 string size.

Its the gPH(ealth) that is causing the problem.

GetPlayerHealth ( playerid, &Float:Health );
Reply
#3

No, i'll shorten the stringsize down abit. It was just raised to to test if I got rid of the warning.
But thanks for your help. Problem solved!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)