Selecting skins with dialogs - 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: Selecting skins with dialogs (
/showthread.php?tid=352067)
Selecting skins with dialogs -
DragonYancy - 18.06.2012
I did one an input dialog for selecting skins. But I can make it with integers, because "inputtext" isn't a integer. How can I fill the blank at code for select skin?
Code:
if(dialogid == 0)
{
// BLANK HERE :)
}
Re: Selecting skins with dialogs -
JaKe Elite - 18.06.2012
use strval
Re: Selecting skins with dialogs -
DragonYancy - 18.06.2012
Quote:
Originally Posted by Romel
use strval
|
How to use it?
Re: Selecting skins with dialogs -
Blunt - 18.06.2012
Add this onto your dialog response.
Code:
if(dialogid == 0)
{
new skin = strval(inputtext);
SetPlayerSkin(playerid, skin);
}