dialog help
#1

Hello,ive made this dialog and i dont get it to work,when i write something in the dialog and click enter,it wont show anything at the chat it just shows "Your Faction's name has changed to".
so someone can say what i did wrong?thank you

Код:
case 2296:
	    	{
		    if(strlen(inputtext))
		    {
	    	new Fname = strval(inputtext);
			new family = PlayerInfo[playerid][Member];
			OrgInfo[family][fName] = Fname;
			new String[256];
   			format( String, sizeof( String ), "Your faction's name has changed to %s",Fname);
		    SendClientMessage( playerid, WHITE, String );
		    SaveOrg();
			}
			}
Reply
#2

Inputtext is a string. You are not saving it in a string.
Reply
#3

and what should i change?
Reply
#4

pawn Код:
case 2296:
            {
            if(strlen(inputtext))
            {
            new family = PlayerInfo[playerid][Member];
            OrgInfo[family][fName] = Fname;
            new String[256];
            format( String, sizeof( String ), "Your faction's name has changed to %s",inputtext);
            SendClientMessage( playerid, WHITE, String );
            SaveOrg();
            }
            }
Reply
#5

sizeof( String ), "Your faction's name has changed to %s",inputtext);
i think it not fits
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)