SA-MP Forums Archive
Dialog problem - 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 problem (/showthread.php?tid=625330)



Dialog problem - SytonicX - 31.12.2016

Код:
	if(dialogid == 65 && response)
	{
		new targetid;
		dUserSet(PlayerName(targetid)).("clan",inputtext);
		return 1;
	}
When I type anything in the DIALOG_STYLE_INPUT its not saving the input in the word near " Clan ".
how it it possible to make it save it?


Re: Dialog problem - BiosMarcel - 31.12.2016

you know ... that targetid is 0 in every possible scenario ?

Also don't use
PHP код:
(dialogid == XX && response
do a
PHP код:
switch(dialogid
and check for response in every case


Re: Dialog problem - SytonicX - 31.12.2016

This, didn't work


Re: Dialog problem - BiosMarcel - 31.12.2016

What doesn't work?? i told you, you are not setting "targetid" it is always 0.


Re: Dialog problem - SytonicX - 31.12.2016

PHP код:
    if(dialogid == 65)
    {
        new 
iPlayer;
        
dUserSetINT(PlayerName(iPlayer)).("clan",inputtext);
        return 
1;
    } 



Re: Dialog problem - BiosMarcel - 31.12.2016

no ... changed the variables name doesn't change the fact it is 0! Do you even know what you are doing?


Re: Dialog problem - SytonicX - 31.12.2016

Then, can you help me to fix this? or no?


Re: Dialog problem - BiosMarcel - 31.12.2016

There is a difference between "fixing" and "writing the whole code for you" , i hope you know that aswell. Sorry ... but no.


Re: Dialog problem - SytonicX - 31.12.2016

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
There is a difference between "fixing" and "writing the whole code for you" , i hope you know that aswell. Sorry ... but no.
With all of my respect but why did you even reply to the post from the beginning then? lol


Re: Dialog problem - BiosMarcel - 31.12.2016

Quote:
Originally Posted by SytonicX
Посмотреть сообщение
With all of my respect but why did you even reply to the post from the beginning then? lol
because i expected a little more from you but you are kind of in the wrong section i think