Help please
#1

Hey guys. I want to have a faction named to be shown in a dialog.
I thought that my code should work but it doesnt

The command:
pawn Код:
COMMAND:invite(playerid,params[])
    {
    new id,string[100];
    if(FactionInfo[playerid][fowner] !=1) return SendClientMessage(playerid,COLOR_RED,"You're not a faction owner.");
    if(sscanf(params,"u",id))return SendClientMessage(playerid,COLOR_GREY,"USAGE:/invite [playerid]");
    if(PlayerInfo[id][Faction] >1) return SendClientMessage(playerid,COLOR_RED,"This player is already in a faction.");
    format(string,sizeof(string),"You are invited for %s",FactionInfo[playerid][fname]);
    ShowPlayerDialog(id,4,DIALOG_STYLE_MSGBOX,"Faction Invite",string,"Accept","Decline");
    return 1;
    }
Now the dialog says: You are invited for

The faction name doesnt shows up.
How to fix?
Reply


Messages In This Thread
Help please - by bartje01 - 04.06.2011, 16:59

Forum Jump:


Users browsing this thread: 3 Guest(s)