Question about string
#1

Hello,

I want do a string where people who don't fill the condition will see another string. But, with what I do. If, the player fill conditions : the player see two times, the string when you fill conditions.

Quote:

if(AccInfo[playerid][example] == 1) {
format(tmp, sizeof(tmp), "Nick : %s \n", Playername2(player1)); strcat(string, tmp);
} else format(tmp, sizeof(tmp), "You don't fill the condition\n"); strcat(string, tmp);

This is just an example.

If the player fill condition with this code, he see two times the string so, two times his name. Can you help me ?
Reply


Messages In This Thread
Question about string - by sam29 - 13.09.2015, 12:02
Re: Question about string - by sanamalik400 - 13.09.2015, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)