20.05.2017, 11:10
You're not using the function "format" properly.
Here's an example of using "format":
This code will print:
Maybe you tried to do something like this:
You forgot () for
Here's an example of using "format":
Код:
new string[128]; new value = 10, Float:floatValue = 12.0, text[3]; format(text, sizeof(text), "Hi"); format(string, sizeof(string), "%s, int value = %d, float value = %f", text, value, floatValue); SendClientMessage(playerid, 0xFFFFFFFF, string);
Код:
Hi, int value = 10, float value = 12.00000
Код:
format(str, sizeof(str), str, PlayerInfo[giveid][AccID], GetPlayerScore(giveid), GetPlayerMoney(giveid), PlayerInfo[giveid][Admin], AdminRank, PlayerInfo[giveid][VIP], PlayerInfo[giveid][RegOn], weaponset, GetPlayerSkin(giveid), PlayerInfo[giveid][Kills], PlayerInfo[giveid][Deaths], PlayerInfo[giveid][MBsFound], PlayerInfo[giveid][ReactionsWon], LMSWins(giveid), PlayerInfo[giveid]FalloutsWon], FalloutsWon[giveid]);
Код:
sizeof(str)