17.09.2012, 15:02
pawn Код:
if(pInfo[playerid][ach1] == 1)
{
format(string,sizeof(string),"{00FF00}First Cigarette",acheivement());
ShowPlayerDialog(playerid,92728,DIALOG_STYLE_LIST,"Acheivements",string,"OK","");
}
if(pInfo[playerid][ach1] == 0)
{
format(string,sizeof(string),"{FFFFFF}First Cigarette",acheivement());
ShowPlayerDialog(playerid,92728,DIALOG_STYLE_LIST,"Acheivements",string,"OK","");
}
Or you can also use "strcat" for string formatting since formatting using format function is very bad and i do not recommend it.