Expression [REP]
#2

You're not using the function "format" properly.
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);
This code will print:
Код:
Hi, int value = 10, float value = 12.00000
Maybe you tried to do something like this:
Код:
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]);
You forgot () for
Код:
sizeof(str)
Reply


Messages In This Thread
Expression [REP] - by fireranger11 - 20.05.2017, 10:59
Re: Expression [REP] - by Aly - 20.05.2017, 11:10
Re: Expression [REP] - by fireranger11 - 20.05.2017, 11:14
Re: Expression [REP] - by fireranger11 - 20.05.2017, 11:18
Re: Expression [REP] - by Aly - 20.05.2017, 11:18
Re: Expression [REP] - by fireranger11 - 20.05.2017, 11:21
Re: Expression [REP] - by Aly - 20.05.2017, 11:27
Re: Expression [REP] - by StrikerZ - 20.05.2017, 11:30
Re: Expression [REP] - by fireranger11 - 20.05.2017, 11:35
Re: Expression [REP] - by Aly - 20.05.2017, 11:37

Forum Jump:


Users browsing this thread: 3 Guest(s)