list dialog help
#4

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
Instead of having fstring and using strcat, just format string and before everything put a %s, which would be string.
like that?
Код:
format(string,sizeof string,"%sSort: %s \n",string,WeedInfo[r][wSort]);
ShowPlayerDialog(playerid,DIALOG_MANAGEWEED+4,DIALOG_STYLE_LIST,"Weed Sorts",string,"Ok","Cancel");
it still wont work.


Quote:
Originally Posted by Bogdan1992
Посмотреть сообщение
pawn Код:
CMD:weedsorts(playerid, params[]){
    if(IsPlayerConnected(playerid)){
        if(PlayerInfo[playerid][pAdmin] == 0){
            SendClientMessage(playerid,COLOR_GRAD2,"You are not authorized to use this command!");
            return 1;
        }
        for(new r = 0; r <= MAX_WEEDS; r++){
            new string[256];
            format(string, sizeof(string),"Sort: %s\n",WeedInfo[r][wSort]);
            ShowPlayerDialog(playerid,DIALOG_MANAGEWEED+4,DIALOG_STYLE_LIST,"Weed Sorts",string,"Ok","Cancel");
        }
    }
    return 1;
}
that aint working neither
Reply


Messages In This Thread
list dialog help - by WardenCS - 22.03.2012, 14:03
Re: list dialog help - by SuperViper - 22.03.2012, 14:22
Re: list dialog help - by Bogdan1992 - 22.03.2012, 14:25
Re: list dialog help - by WardenCS - 22.03.2012, 14:29
Re: list dialog help - by Bogdan1992 - 22.03.2012, 14:32
Re: list dialog help - by WardenCS - 22.03.2012, 14:37
Re: list dialog help - by Bogdan1992 - 22.03.2012, 14:39
Re: list dialog help - by WardenCS - 22.03.2012, 14:40
Re: list dialog help - by Bogdan1992 - 22.03.2012, 14:41
Re: list dialog help - by WardenCS - 22.03.2012, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)