06.06.2010, 21:29
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'
This is what I use to store the information before taking it onto the mysql query.
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));
pawn Код:
format(string,128,"%s",inputtext);
SetPVarString(playerid,"BankSavePass",string);