20.08.2012, 07:16
Hii to all
Can somebody explene me about %s and %d how that works?
i cant wiki....
Can somebody explene me about %s and %d how that works?
i cant wiki....
new variable, string[128]; variable = 1337; format(string, sizeof(string), "The value of variable is %d!"); print(string);
new string[64], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "My name is: %s", Name);
SendClientMessage(playerid, 0xFFFFFFFF, string);
new lvl, string[64];
lvl = GetPlayerScore(playerid);
format(string, sizeof(string), "My score is %d", lvl);
SendClientMessage(playerid, 0xFFFFFFFF, string);
You can use it to show information into messages...
Код:
new variable, string[128]; variable = 1337; format(string, sizeof(string), "The value of variable is %d!"); print(string); |
new variable, string[128]; variable = 1337; format(string, sizeof(string), "The value of variable is %d!",variable); print(string);