Problem sa registracijom

Započeo whyllon, Jul 13, 2023, 11:24:37 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kad izaberem bilo koju državu stoje oni buttoni spawn i one strelice
Deo skripte: [pawn]
Dialog:dialog_country(playerid, response, listitem, string:inputtext[]) {
    if(!response) return Kick(playerid);
    switch(listitem) {
        case 0: {
            new query[500];
          mysql_format(SQL, query, sizeof(query), "INSERT INTO `players` (`Name`, `Password`, `Ages`, `Sex`, `Country`, `Level`, `Money`, `Skin`, `Respects`, `RespectsNeed`, `HoursPlay`, `BankMoney`, `Gold`) \
          VALUES ('%e', '%d', '%d', '%d', '%d', '1', '5000', '60', '0', '8', '0', '0', '0')", ReturnPlayerName(playerid), PlayerInfo[playerid][Password], PlayerInfo[playerid][Ages], PlayerInfo[playerid][Sex], PlayerInfo[playerid][Country], PlayerInfo[playerid][Level], PlayerInfo[playerid][Money], PlayerInfo[playerid][Skin], PlayerInfo[playerid][Respects], PlayerInfo[playerid][RespectsNeed], PlayerInfo[playerid][HoursPlay], PlayerInfo[playerid][BankMoney], PlayerInfo[playerid][Gold]);
          mysql_tquery(SQL, query, "PlayerRegistered", "i", playerid);
        }
        case 1: {
            new query[500];
            mysql_format(SQL, query, sizeof(query), "INSERT INTO `players` (`Name`, `Password`, `Ages`, `Sex`, `Country`, `Level`, `Money`, `Skin`, `Respects`, `RespectsNeed`, `HoursPlay`, `BankMoney`, `Gold`) \
          VALUES ('%e', '%d', '%d', '%d', '%d', '1', '5000', '60', '0', '8', '0', '0', '0')", ReturnPlayerName(playerid), PlayerInfo[playerid][Password], PlayerInfo[playerid][Ages], PlayerInfo[playerid][Sex], PlayerInfo[playerid][Country], PlayerInfo[playerid][Level], PlayerInfo[playerid][Money], PlayerInfo[playerid][Skin], PlayerInfo[playerid][Respects], PlayerInfo[playerid][RespectsNeed], PlayerInfo[playerid][HoursPlay], PlayerInfo[playerid][BankMoney], PlayerInfo[playerid][Gold]);
          mysql_tquery(SQL, query, "PlayerRegistered", "i", playerid);
        }
        case 2: {
            new query[500];
            mysql_format(SQL, query, sizeof(query), "INSERT INTO `players` (`Name`, `Password`, `Ages`, `Sex`, `Country`, `Level`, `Money`, `Skin`, `Respects`, `RespectsNeed`, `HoursPlay`, `BankMoney`, `Gold`) \
          VALUES ('%e', '%d', '%d', '%d', '%d', '1', '5000', '60', '0', '8', '0', '0', '0')", ReturnPlayerName(playerid), PlayerInfo[playerid][Password], PlayerInfo[playerid][Ages], PlayerInfo[playerid][Sex], PlayerInfo[playerid][Country], PlayerInfo[playerid][Level], PlayerInfo[playerid][Money], PlayerInfo[playerid][Skin], PlayerInfo[playerid][Respects], PlayerInfo[playerid][RespectsNeed], PlayerInfo[playerid][HoursPlay], PlayerInfo[playerid][BankMoney], PlayerInfo[playerid][Gold]);
          mysql_tquery(SQL, query, "PlayerRegistered", "i", playerid);
        }
        case 3: {
            new query[500];
            mysql_format(SQL, query, sizeof(query), "INSERT INTO `players` (`Name`, `Password`, `Ages`, `Sex`, `Country`, `Level`, `Money`, `Skin`, `Respects`, `RespectsNeed`, `HoursPlay`, `BankMoney`, `Gold`) \
          VALUES ('%e', '%d', '%d', '%d', '%d', '1', '5000', '60', '0', '8', '0', '0', '0')", ReturnPlayerName(playerid), PlayerInfo[playerid][Password], PlayerInfo[playerid][Ages], PlayerInfo[playerid][Sex], PlayerInfo[playerid][Country], PlayerInfo[playerid][Level], PlayerInfo[playerid][Money], PlayerInfo[playerid][Skin], PlayerInfo[playerid][Respects], PlayerInfo[playerid][RespectsNeed], PlayerInfo[playerid][HoursPlay], PlayerInfo[playerid][BankMoney], PlayerInfo[playerid][Gold]);
          mysql_tquery(SQL, query, "PlayerRegistered", "i", playerid);
        }
    }
    return 1;
}

forward PlayerRegistered(playerid);
public PlayerRegistered(playerid) {
   if(PlayerLogged[playerid] == true) return SendClientMessage(playerid, x_red, "ERROR:"c_white"Vi ste vec ulogovani!");
   PlayerInfo[playerid][Level] = 1;
   PlayerInfo[playerid][Money] = 5000;
   PlayerInfo[playerid][Skin] = 60;
    SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
   TogglePlayerSpectating(playerid, false);
   ClearChat(playerid, 16);
   va_SendClientMessage(playerid, -1,""c_server"%s "c_white"vi ste uspjesno registrovani na "c_server"Balkan Vice "c_white"RolePlay server!", ReturnPlayerName(playerid));
   va_SendClientMessage(playerid, -1,"Vas level je "c_server"%d"c_white", uzivajte igrajuci na serveru!", PlayerInfo[playerid][Level]);
   PlayerLogged[playerid] = true;
   SetPlayerScore(playerid, PlayerInfo[playerid][Level]);
   ResetPlayerMoney(playerid);
   GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);
   SaveAccounts(playerid);
   SetSpawnInfo(playerid, 0, PlayerInfo[playerid][Skin], 1589.4977,-2330.5344,13.5377,86.9024, 0, 0, 0, 0, 0, 0);
   SpawnPlayer(playerid);
   return 1;
}
[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [pawn]/[/pawn]
Slika/video ingame problema(obavezno ako je ingame problem): /