Wunderschönen Guten Morgen euch allen,
Ich habe das Problem das ich dass Gamemode nicht anbekomme.
Wegen fehlender Mysql Tabellen,ich habe alle erstellt und es ist trotzdem immer noch unknown.
Könnte einer mal vorbeischauen ob ich es richtig gemacht habe.Oder mir zeigen was ich da zu machen habe.
Hier ist die Public OnPlayerLogin
public OnPlayerLogin(playerid)
{
new string[128];
new query[256], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(query,sizeof(query),"SELECT Level FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pLevel] = mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT AdminLevel FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pAdmin] = mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT DonateRank FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pDonateRank] = mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT Registered FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pRegistered] = mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT Tutorial FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pTut] = mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT Sex FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pSex] = mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT Age FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pAge] = mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT Experience FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pExp] = mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT Money FROM `user` WHERE Name = '%s' LIMIT 1",pName);
mysql_query(query);
mysql_store_result();
Ich habe es so gemacht:
Ich bitte um Hilfe!
Gruß
Carey_Mahoney