strcat
#1

Does it works if I did

pawn Код:
new string[20];
strcat(string, "Hats: %d", pInfo[playerid][Hats]);
SendClientMessage(playerid, string);
return 1;
So, will it show the amount of hats to the message ? I got no errors for this but I'm not sure if this works or not ?
Reply
#2

Quote:
Originally Posted by Zex Tan
Посмотреть сообщение
Does it works if I did

pawn Код:
new string[20];
strcat(string, "Hats: %d", pInfo[playerid][Hats]);
SendClientMessage(playerid, string);
return 1;
So, will it show the amount of hats to the message ? I got no errors for this but I'm not sure if this works or not ?
Why don't you test that then?
If doesn't works, use the code below:

pawn Код:
new string[20];
format(string, sizeof(string),"Hats: %d", pInfo[playerid][Hats]);
SendClientMessage(playerid, string);
return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)