Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Kicking "ip" because they didn't logon to the game.


Question

Posted

Problema intalnita (descriere): De cand am bagat ultima versiune de SAMP (0.3.7) pe server imi tot da aceasta eroare, si nu il lasa pe X sa intre pe server...
Ero(area / rile) / warning-(ul / urile): Gamemode-ul lui Maurice (rG3)
Liniile de cod / sursa / script-ul(obligatoriu): Kicking "ip" because they didn't logon to the game.
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Am cautat pe internet, dar nu am gasit nimic folositor...

8 answers to this question

Recommended Posts

  • 0
Posted

Posteaza OnPlayerConnect.

public OnPlayerConnect(playerid)
{
    PlayerAFK[playerid] = 0; AFKLoggin[playerid] = 40; ByPASS[playerid] = 0; Mats[playerid] = 0; Allowed[playerid] = 0; Authorised[playerid] = 0; Sleeping[playerid] = 0; SleepXP[playerid] = 0;
    //new PlayerBar:bar1 = CreatePlayerProgressBar(playerid,501.00, 103.00, 103.50, 2.50, , 100.0); -16776961
    //War: new Bar:bar = CreateProgressBar(240.00, 395.00, 257.50, 12.20, -16776961, 100.0);  499.00, 103.00, 105.50 | 498.00, 162.00, 107.50, 7.50
    barxp = CreatePlayerProgressBar(playerid,498.00, 146.00, 107.50, 9.19, -16776961, 100.0);
    
    SetPlayerColor(playerid,COLOR_SPEC);
    MysqlRaceCheck[playerid]++;

    for(new pData:e; e < pData; ++e)
    {//Reseting all player's variables
        PlayerData[playerid][e] = 0;
    }
    
    for(new i = 0; i < 128; i++)
    {
        Suspects[playerid] = -1;
    }
    
    DealerID[playerid] = 0; VehicleDealer[playerid] = -1; InDealer[playerid] = 0; DSAngle[playerid] = 0.0;
    PlayerData[playerid][InBizz] = -1;
    PlayerData[playerid][InHouse] = -1;
    PlayerData[playerid][InHQ] = -1;
    PlayerData[playerid][SpectateP] = -1;
    PlayerData[playerid][Spectate] = -1;
    PlayerData[playerid][PlayerToFind] = -1;
    PlayerData[playerid][WarOffer] = -1;
    PlayerData[playerid][WarOffered] = -1;
    
    MedicAns[playerid] = -1; MedicCall[playerid] = -1; LiveOffer[playerid] = -1; LiveReporter[playerid] = -1; TalkingLive[playerid] = -1; PaperOffer[playerid] = -1;
    PaperReporter[playerid] = -1, WritingPaper[playerid] = 0, WritingPaperNumber[playerid] = 999, WritingLine[playerid] = 0, BringingPaper[playerid] = 0;
    GotPaper[playerid] = 0, DestinationSet[playerid] = 0, RadioSet[playerid] = 0, PlayerTied[playerid] = 0, VSpecial[playerid] = 0, ExamPoint[playerid] = 0;
    EStep[playerid] = 0, VHits[playerid] = 0, PPizzaCP[playerid] = -1, VJob[playerid] = -1, PSweeperCP[playerid] = -1, Dice[playerid] = 0, PTruckerCP[playerid] = -1, PFarmerCP[playerid] = -1;
    Mobile[playerid] = -1, PBusCP[playerid] = -1, Key[playerid] = 0, KeyC[playerid] = 0, SwitchKey[playerid] = 1, OnExp[playerid] = 0, JoinedCS[playerid] = 0, JoinedKart[playerid] = 0;
    KeyReset[playerid] = 0, GunOffer[playerid] = -1, GunOffered[playerid] = -1, GunPrice[playerid] = -1, GunModel[playerid] = -1, DrugOffer[playerid] = -1, DrugOffered[playerid] = -1, DrugPrice[playerid] = -1, DrugAmount[playerid] = -1, PlayerStoned[playerid] = 0;
    MaterialsOffer[playerid] = -1, MaterialsOffered[playerid] = -1, MaterialsPrice[playerid] = -1, MaterialsAmount[playerid] = -1, PGarbageCP[playerid] = -1, PKartCP[playerid] = -1;
    TicketOffer[playerid] = -1, TicketMoney[playerid] = 0, OwnableCarOffer[playerid] = -1, OwnableCarOffered[playerid] = -1, OwnableCarID[playerid] = 0, OwnableCarPrice[playerid] = 0, OwnableCarSlot[playerid] = 0;
    OwnableHouseOffer[playerid] = -1, OwnableHouseOffered[playerid] = -1, OwnableHouseID[playerid] = 0, OwnableHousePrice[playerid] = 0, PMTo[playerid] = -1, NeedAns[playerid] = 0;
    
    new query[128];
    GetPlayerName(playerid, PlayerData[playerid][Name], MAX_PLAYER_NAME);
    //Thread query to select player's info
    mysql_format(SQL, query, sizeof(query), "SELECT `Password`, `KeyReset` FROM `users` WHERE `username` = '%e' LIMIT 1", PlayerData[playerid][Name]);
    mysql_tquery(SQL, query, "OnPlayerDataLoaded", "dd", playerid, MysqlRaceCheck[playerid]);

  • 0
Posted (edited)

Sau ai putea sa cauti aceasta variabila sa vezi ce e cu ea spune multe ....

 AFKLoggin[playerid] = 40

Eu cred ca iti da kick dupa 40 de secunde pentru ca atata are ea atribuit

 Kicking "ip" because they didn't logon to the game.

 

Sau acest for ce e cu el?

  for(new i = 0; i < 128; i++)
    {
        Suspects[playerid] = -1;
    }

nu ar trebui sa fie asa?

  for(new i = 0; i < MAX_PLAYERS; i++)
    {
        Suspects[i] = -1;
    }

Mai bine lasal asa daca nu stii ce face

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
Guest
This topic is now closed to further replies.
×
×
  • 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.