Save dialog input for later use?
#1

Okay so heres my issue, had a post earlier but thought it would be best to just recreate a new one and describe my issue better.

My issue is following:

I want to save a inputtext for a later mysql query.

I've now been trying for the last hours with no success.

The following code is what I'm using:

Here I'm trying to find a bank by using the WHERE and then password, this is where the issue is: It doesn't save proberly with GetPVarString/SetPVarString, It seems to only use 4 letter which is 'T', If I have a code with like 1337 then it would output '4'
pawn Код:
format(string,128,"UPDATE `bank` SET `Amount`='%s' WHERE `Password`='%s'",inputtext,GetPVarString(playerid,"BankSavePass",string,300));
This is what I use to store the information before taking it onto the mysql query.
pawn Код:
format(string,128,"%s",inputtext);
SetPVarString(playerid,"BankSavePass",string);
Reply


Messages In This Thread
Save dialog input for later use? - by oliverrud - 06.06.2010, 21:29
Re: Save dialog input for later use? - by saiberfun - 06.06.2010, 21:32
Re: Save dialog input for later use? - by oliverrud - 06.06.2010, 21:40
Re: Save dialog input for later use? - by oliverrud - 06.06.2010, 22:02

Forum Jump:


Users browsing this thread: 2 Guest(s)