10.06.2015, 09:27
You have size of 130 for storing the password and the query itself is only 128? Increase its length so it will be enough.
Also cache_insert_id will fail. It must be in a public function (always advised to use cache, even in INSERT/UPDATE):
and what's the point in executing a query directly after that and selecting all the data? I mean, the player just registered so obviously you know all the rest of the data.
Also cache_insert_id will fail. It must be in a public function (always advised to use cache, even in INSERT/UPDATE):
pawn Код:
mysql_function_query(mysql,str,true,"OnPlayerRegisterAccount","i", playerid);
// somewhere outside of any other function/callback:
forward OnPlayerRegisterAccount(playerid);
public OnPlayerRegisterAccount(playerid)
{
FieldID[playerid] = cache_insert_id(mysql);
return 1;
}