SA-MP Forums Archive
Dialog button help! I give rep !! Thanks !!! - 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 button help! I give rep !! Thanks !!! (/showthread.php?tid=545089)



Dialog button help! I give rep !! Thanks !!! - buburuzu19 - 06.11.2014

FIXED.


Re: Dialog button help! I give rep !! Thanks !!! - BroZeus - 06.11.2014

I still dont understand can u give an example of it..


Re: Dialog button help! I give rep !! Thanks !!! - Toxik - 06.11.2014

give us an example ..


Re: Dialog button help! I give rep !! Thanks !!! - buburuzu19 - 06.11.2014

FIXED.


Re: Dialog button help! I give rep !! Thanks !!! - BroZeus - 06.11.2014

like dat -
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1155)
{
if(!response)return 1;
new pos = strfind(inputtext, "ID", true);
new id;
if(inputtext[pos+4] == ']')id = strval(inputtext[pos+3]);
else id = (strval(inputtext[pos+3])*10) + strval(inputtext[pos+4]);

//now id contains the player id which is to find...use 'id' in ud finding system...
}
return 0;
}



Re: Dialog button help! I give rep !! Thanks !!! - buburuzu19 - 06.11.2014

FIXED.


Re: Dialog button help! I give rep !! Thanks !!! - Stinged - 06.11.2014

It would be great if you don't edit your posts and say "FIXED".
If someone needed help they would search and find old topics and get their answer from them.


Re: Dialog button help! I give rep !! Thanks !!! - Arastair - 06.11.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
It would be great if you don't edit your posts and say "FIXED".
If someone needed help they would search and find old topics and get their answer from them.
True, this problem might happen to someone else too