make strcat
#7

Quote:
Originally Posted by SAMProductions
Посмотреть сообщение
You can just edit it by yourself for Example :-

Using ShowPlayerDialog,
Код:
format(string, sizeof(string), "My Name is: %s", pName);
format(string2, sizeof(string2), "My ID is: %d", playerid);
format(string3, sizeof(string3), "The number is %i.",number);  //-> The number is 42.
format(string4, sizeof(string4), "This is a %s containing the number %i.", string, number);

format(AllStrings, sizeof(AllStrings), "%s\n%s\n%s\n%s", string, string2, string3, string4);

ShowPlayerDialog(playerid, STATS_DIALOG, DIALOG_STYLE_MSGBOX, "Player Statistic(s)", AllStrings, "Close", "");
Using SendClientMessage,
Код:
format(string, sizeof(string), "My Name is: %s", pName);
format(string2, sizeof(string2), "My ID is: %d", playerid);
format(string3, sizeof(string3), "The number is %i.",number);  //-> The number is 42.
format(string4, sizeof(string4), "This is a %s containing the number %i.", string, number);

format(AllStrings, sizeof(AllStrings), "%s\n%s\n%s\n%s", string, string2, string3, string4);

SendClientMessage(playerid, -1, AllStrings);
Using SendClientMessageToAll,
Код:
format(string, sizeof(string), "My Name is: %s", pName);
format(string2, sizeof(string2), "My ID is: %d", playerid);
format(string3, sizeof(string3), "The number is %i.",number);  //-> The number is 42.
format(string4, sizeof(string4), "This is a %s containing the number %i.", string, number);

format(AllStrings, sizeof(AllStrings), "%s\n%s\n%s\n%s", string, string2, string3, string4);

SendClientMessageToAll(-1, AllStrings);
etc.
That method is terrible, strcat is a lot more efficient and easier, also faster.
Reply


Messages In This Thread
make strcat - by kbalor - 10.11.2013, 11:49
Re: make strcat - by SAMProductions - 10.11.2013, 12:00
Re: make strcat - by kbalor - 10.11.2013, 12:11
Re: make strcat - by SAMProductions - 10.11.2013, 12:16
Re : make strcat - by DanishHaq - 10.11.2013, 12:17
Re: make strcat - by SAMProductions - 10.11.2013, 12:27
Re: make strcat - by DanishHaq - 10.11.2013, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)