SA-MP Forums Archive
dialog help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: dialog help (/showthread.php?tid=318480)



dialog help - WardenCS - 15.02.2012

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();
			}
			}



Re: dialog help - iTorran - 15.02.2012

Inputtext is a string. You are not saving it in a string.


Re: dialog help - WardenCS - 15.02.2012

and what should i change?


Re: dialog help - SuperViper - 15.02.2012

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();
            }
            }



Re: dialog help - Lisa - 15.02.2012

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