Jump to content

Question

Posted

Nick: Vanilla

Problema: Cand utilizez comanda /language trebuie sa selectez limba(Engleza sau Romana), daca dau relog se salveaza, daca inchid serverul nu se mai salveaza.

Erori / warnings: -

Lini/script: [pawn] if(dialogid == 1996)

{

    if(!response)

          {

PlayerData[playerid][pLangRD] = 1;

Option[Limba] = 0;

              SendClientMessage(playerid, 0xFFFFFFAA, "{0033CC}Ai setat limba jocului ca fiind Romana.");

    new query[MAX_PLAYERS];

    format(query, sizeof(query), "UPDATE players SET Language='%d' WHERE id=%d", PlayerData[playerid][pLangRD], PlayerData[playerid][pSQLID]);

mysql_query(query);

return 1;

          }

          if(response)

          {

          Option[Limba] = 1;

              SendClientMessage(playerid, 0xFFFFFFAA, "{0033CC}Your language has been set to English.");

              PlayerData[playerid][pLangRD] = 2;

    new query[MAX_PLAYERS];

    format(query, sizeof(query), "UPDATE players SET Language='%d' WHERE id=%d", PlayerData[playerid][pLangRD], PlayerData[playerid][pSQLID]);

mysql_query(query);

}

}[/pawn]

Ai incercat sa rezolvi singur ?: Da

1 answer to this question

Recommended Posts

Posted

Topic inchis , 48h fara up / reply.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.