17.09.2012, 15:34
Your code is very confusing ...
pawn Код:
if(pInfo[playerid][ach1] == 1)
format(string,256,"%s\n {00FF00}First Cigarette",string);
if(pInfo[playerid][ach1] == 0)
format(string,256,"%s\n {FFFFFF}First Cigarette",string);
if(pInfo[playerid][ach2] == 1)
format(string,256,"%s\n {FFFFFF}First Vehicle",string);
if(pInfo[playerid][ach2] == 0)
format(string,256,"%s\n {FFFFFF}First Vehicle",string);
ShowPlayerDialog(playerid,92728,DIALOG_STYLE_LIST,"Acheivements",string,"OK","");
acheivement()
{
new string2[20];
if(pInfo[playerid][ach2] == 0)
format(string2,sizeof(string2),"{FFFFFF}FirstMan");
if(pInfo[playerid][ach2] == 1)
format(string2,sizeof(string2),"{00FF00}FirstMan");
return string2;
}