Argument Type Mismatch
#1

Hi everyone,

I am getting really sick of this, I am making a Car database system, but i keep getting errors at the login part..
Here is the piece of code that gives the error:
pawn Код:
if(response)
    {
    SetPVarInt(playerid,"UsedLoginCode",inputtext);//here is the argument type mismatch, 3th argument
    LoginCardatabase(playerid);
   
   
    }
The thing that is being typed is a Integer, something like 9475475, so it's not a string..
anyone any idea on how to solve this?

Thanks
Reply
#2

pawn Код:
SetPVarString(playerid,"UsedLoginCode",inputtext);
EDIT : NVM didnt saw tat value is of int type.

pawn Код:
SetPVarInt(playerid,"UsedLoginCode", strval(inputtext));
Reply
#3

pawn Код:
SetPVarInt(playerid,"UsedLoginCode", strval(inputtext));
If you want to store it a a number use mine, if you want to store it as a string use RoXoRs code.
Reply
#4

Thanks both of you, I will try this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)