Sql & PVars
#6

Quote:
Originally Posted by Lajko1
Посмотреть сообщение
Код:
new charname[128];
            format(charname,sizeof(charname),"%s",inputtext);
			SetPVarString(playerid,"CharName",charname);
And how to save this properly into variable? it's inputtext dialog, is my way correct or..?
Create the variable somewhere at the top to be global... and probably

format(charname, sizeof(charname),"%s", inputtext);

variable = charname;

didn't work too much with dialogs but this should work.
Reply


Messages In This Thread
Sql & PVars - by Lajko1 - 10.04.2017, 19:28
Re: Sql & PVars - by AndreiWow - 10.04.2017, 19:54
Re: Sql & PVars - by Lajko1 - 10.04.2017, 19:58
Re: Sql & PVars - by AndreiWow - 10.04.2017, 20:00
Re: Sql & PVars - by Lajko1 - 10.04.2017, 20:08
Re: Sql & PVars - by AndreiWow - 10.04.2017, 20:26
Re: Sql & PVars - by Lajko1 - 11.04.2017, 04:54

Forum Jump:


Users browsing this thread: 1 Guest(s)