07.03.2013, 02:32
Hi, I am having an error in PAWN I can not figure out.
I get error 35: argument type mismatch (argument 2)
This is the line the error is on:
This is my User_Register function:
I get error 35: argument type mismatch (argument 2)
This is the line the error is on:
pawn Код:
User_Register(playerid, sqlpw);
This is my User_Register function:
pawn Код:
public User_Register(playerid, sqlpw)
{
new query[200], name[MAX_PLAYER_NAME],message[100];
GetPlayerName(playerid, name,sizeof(name));
format(query, sizeof(query), "INSERT INTO playerdata (name, password, cash, admin) VALUES('%s', '%s', 10000, 0)", name, sqlpw);
mysql_query(query);
format(message,sizeof(message),"Welcome, %s! You have been registered successfully!",name);
SendClientMessage(playerid,COLOR_YELLOW,message);
return 1;
}