Sql & PVars
#7

will try to do your way, however if I use this:

Код:
new charname[128];
            format(charname,sizeof(charname),"%s",inputtext);
			SetPVarString(playerid,"CharName",charname);
and try with this:

Код:
CMD:test(playerid, params[])
{
	new msg[28];
	format(msg, sizeof(msg),"%s",GetPVarString(playerid,"CharName",msg, sizeof(msg)));
	SendClientMessage(playerid,-1,msg);
	return 1;
}
it says "1" and nothing else, soo I used PVars in wrong way (still learning about PVars) or something is wrong at dialogs phase where I'm trying to save to PVar.
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)