18.07.2015, 10:48
I do. On the upper stock (LoginPlayer) .. I can't use a local variable for more stock or ?
LoginPlayer
Doesn't matter-.. I resolved that. It happend cuz I had the saveplayer like that.. stock SavePlayer(playerid); when it should be SavePlayer(playerid)
LoginPlayer
Код:
stock LoginPlayer(playerid) { new query[126], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(query, sizeof(query), "SELECT FROM * accounts WHERE name = '%s'", pName); mysql_query(query); mysql_store_result(); while(mysql_fetch_row(query, " ")) { mysql_fetch_row(Player[playerid][Username], "Username"); mysql_fetch_row(Player[playerid][Password], "Password"); } SpawnPlayer(playerid); }