18.07.2017, 20:56
Olhe os argumentos da funзгo strcat, para o que vocк esta tentando fazer deve ser usado a funзгo format para formatar e depois a funзгo strcat para juntar a string formata em uma string principal.
Exemplo:
Exemplo:
PHP код:
new temp[50];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
new principal[128];
format(temp, sizeof temp, "Olб %s", name);
strcat(principal, temp);
strcat(principal, " bem vindo ao servidor.");