Updating a text draw
#1

Hi,
I'm using the following code to update a text draw:

Code:
 	format(iStr, sizeof(iStr), "%s (%d) ~g~($%s)~w~n~ -> %s~n~", RPName(playerid), playerid, number_format(amount), iBet);
 	strcat(PlayerTemp[PlayerTemp[playerid][pDealing]][casinoBetsTD], iStr);
 	SendClientMessage(playerid, COLOR_WHITE, iStr);
 	SendClientMessage(playerid, COLOR_WHITE, PlayerTemp[PlayerTemp[playerid][pDealing]][casinoBetsTD]);
I'm sending client messages as logs as it does not append the string.
iStr is displayed correctly and casinoBetsTD is blank.
Reply
#2

You need add length in strcat at the end
Reply
#3

Just like jeff said https://sampwiki.blast.hk/wiki/Strcat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)