Jump to content

[REZOLVAT] Problema gamemode Burned Maxim 3 playeri


WanteKKK
 Share

Recommended Posts

Username:WanteK
Problema întălnită:Am pus gamemode pe host si mai mult de 3 playeri nu se pot conecta. Nu sunt boti sunt playeri cu ip random.
Detalii despre problemă:Nu se pot conecta mai multe persoane am verificat /onplayerlogin nimic.
Ce ai încercat să faci înainte să postezi?:Am verificat onplayerlogin / onplayerregister max_players 
Cod sursă (recomandat pastebin.com) : nu
Alte detalii: Va multumesc

Link to comment
Share on other sites

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

function OnPlayerLogin(playerid,password[]) {
	new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    new qstr[100];
    new result[456];
    format(qstr,100,"SELECT * FROM users WHERE `name`='%s' AND `password`='%s'",playername2,password);
    mysql_query(SQL,qstr);
    mysql_store_result();	
    if(mysql_num_rows() > 0) {
      	if(mysql_retrieve_row()) {
			GameTextForPlayer(playerid, "~y~Loading account...", 20000, 4);
			PlayerTextdraws(playerid);
			
    		mysql_fetch_field_row(result,"password"); format(PlayerInfo[playerid][pKey], 128, result);
			mysql_fetch_field_row(result,"Level"); PlayerInfo[playerid][pLevel] = strval( result );
			mysql_fetch_field_row(result,"Admin"); PlayerInfo[playerid][pAdmin] = strval( result );	
			mysql_fetch_field_row(result,"Backpack"); PlayerInfo[playerid][pBackpack] = strval( result );	
			mysql_fetch_field_row(result,"Security"); format(PlayerInfo[playerid][pSecurity], 64, result);
			mysql_fetch_field_row(result,"Propose"); format(PlayerInfo[playerid][pPropose], 64, result);

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...