Peršokti į turinį

Recommended Posts

#define MySQL_HOST 	"localhost"
#define MySQL_USER	"root"
#define MySQL_DATA	"server"
#define MySQL_PASS	""

new MySQL:connect_mysql;

public OnGameModeInit()
{
	connect_mysql = mysql_connect(MySQL_HOST, MySQL_USER, MySQL_DATA, MySQL_PASS);
	return true;
}

public OnGameModeExit()
{
	mysql_close(connect_mysql);
	return true;
}

Visas prijungimas prie duom. baz─Śs ne─»skaitant XAMPP ar kitos programos instaliavimo :).

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

28 minutes prie┼í, Timber para┼í─Ś:
#define MySQL_HOST 	"localhost"
#define MySQL_USER	"root"
#define MySQL_DATA	"server"
#define MySQL_PASS	""

new MySQL:connect_mysql;

public OnGameModeInit()
{
	connect_mysql = mysql_connect(MySQL_HOST, MySQL_USER, MySQL_DATA, MySQL_PASS);
	return true;
}

public OnGameModeExit()
{
	mysql_close(connect_mysql);
	return true;
}

Visas prijungimas prie duom. baz─Śs ne─»skaitant XAMPP ar kitos programos instaliavimo :).

Turiu nukopijuoti tai ir ideti tenais? Ar veiks?

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

Prie┼í 1 valand─ů, YourLilSatan para┼í─Ś:

Turiu nukopijuoti tai ir ideti tenais? Ar veiks?

Tik dabar pasteb─Śjau. klaida next-ac,inc faile. Kintamasis 5095 eilut─Śje "pasidengia" su kintamuoju .pwn faile arba kituose failuose. Sp─Śju naudoji platint─ů modifikacija. Asmeni┼íkai patar─Źiau prad─Śti mokytis nuo new.pwn, ┼żi┼źr─Śti video pamokas, ra┼íytines pamokas forume. J┼│ pilna :).

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

(redaguota)

 

prie┼í 8 valandas(-┼│), Timber para┼í─Ś:

 

prie┼í 8 valandas(-┼│), Timber para┼í─Ś:

Tik dabar pasteb─Śjau. klaida next-ac,inc faile. Kintamasis 5095 eilut─Śje "pasidengia" su kintamuoju .pwn faile arba kituose failuose. Sp─Śju naudoji platint─ů modifikacija. Asmeni┼íkai patar─Źiau prad─Śti mokytis nuo new.pwn, ┼żi┼źr─Śti video pamokas, ra┼íytines pamokas forume. J┼│ pilna :).

O tai kaip i┼íspr─Östi dabartin─Ś problema kad pasileistu be error?

Redaguota , nario YourLilSatan
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

14 minutes prie┼í, YourLilSatan para┼í─Ś:

 

Numesk kod─ů 5095 eilut─Śje, o tiksliau vis─ů funkcija ar kas ten beb┼źt┼│.

EDIT: Per pawno paspausk CTRL + F, ─»ra┼íyk playertextid ir numesk kod─ů again.

Redaguota , nario Timber
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

2 minutes prie┼í, YourLilSatan para┼í─Ś:

Kaip ji rast? :D

Nueini ─» direktorija pawno/includes ir surandi next-ac.inc. Atsidarai j─». Spaudi CTRL + G ir ─»ra┼íai 5095. Nukopijuok nuo 5080 iki 5110 ir ─»mesk ─Źia.

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

@YourLilSatan┬áJeigu ─Źia tas Gm'as kaip matau i┼í nuotraukos tai pirma┬á

atsidarai per pawn programa >> RAM aplanka >> MYSQL faila >> jame sura┼íai duomenis > poto┬áu┼żdaryk bet nekompilkuok >> antra atsidarai pat─» GM faila sukompiliuoji ir tur─Śt┼│ veikt.

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

(redaguota)

 

prie┼í 6 valandas(-┼│), Timber para┼í─Ś:

Nueini ─» direktorija pawno/includes ir surandi next-ac.inc. Atsidarai j─». Spaudi CTRL + G ir ─»ra┼íai 5095. Nukopijuok nuo 5080 iki 5110 ir ─»mesk ─Źia.

  Va tik failas buvo uzvadintas ne next-ac o nex-ac

          LeaveRaceCheckpoint
            #undef OnPlayerLeaveRaceCheckpoint
        #else
            #define _ALS_OnPlayerLeaveRaceCheckpoint
        #endif
        #define OnPlayerLeaveRaceCheckpoint ac_OnPlayerLeaveRaceCheckpoint
        #if defined ac_OnPlayerLeaveRaceCheckpoint
            forward ac_OnPlayerLeaveRaceCheckpoint(playerid);
        #endif
    #endif
#endif

#if defined _inc_y_hooks || defined _INC_y_hooks
    Hook:ac_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
#else
    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
#endif
{
    if(AntiCheatInfo[playerid][acKicked]) return 0;
    new ac_i = GetTickCount();
    if(AntiCheatInfo[playerid][acACAllow][49])
    {
        if(ac_i < AntiCheatInfo[playerid][acCall][23] + ac_Mtfc[23][0]) return ac_FloodDetect(playerid, 23);
        if(ac_i < AntiCheatInfo[playerid][acCall][27] + ac_Mtfc[27][0]) ac_FloodDetect(playerid, 27);
        else AntiCheatInfo[playerid][acFloodCount][23] = AntiCheatInfo[playerid][acFloodCount][27] = 0;
    }
    AntiCheatInfo[playerid][acCall][27] = AntiCheatInfo[playerid][acCall][23] = ac_i;
    #if !defined _inc_y_hooks && !defined _INC_y_hooks\
        && defined ac_OnPlayerClickPlayerTextDraw
        return ac_OnPlayerClickPlayerTextDraw(playerid, playertextid);
    #else

Redaguota , nario YourLilSatan
radau mysql ram folder'i :DDD
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

prie┼í 6 valandas(-┼│), YourLilSatan para┼í─Ś:

 

  Va tik failas buvo uzvadintas ne next-ac o nex-ac

          LeaveRaceCheckpoint
            #undef OnPlayerLeaveRaceCheckpoint
        #else
            #define _ALS_OnPlayerLeaveRaceCheckpoint
        #endif
        #define OnPlayerLeaveRaceCheckpoint ac_OnPlayerLeaveRaceCheckpoint
        #if defined ac_OnPlayerLeaveRaceCheckpoint
            forward ac_OnPlayerLeaveRaceCheckpoint(playerid);
        #endif
    #endif
#endif

#if defined _inc_y_hooks || defined _INC_y_hooks
    Hook:ac_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
#else
    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
#endif
{
    if(AntiCheatInfo[playerid][acKicked]) return 0;
    new ac_i = GetTickCount();
    if(AntiCheatInfo[playerid][acACAllow][49])
    {
        if(ac_i < AntiCheatInfo[playerid][acCall][23] + ac_Mtfc[23][0]) return ac_FloodDetect(playerid, 23);
        if(ac_i < AntiCheatInfo[playerid][acCall][27] + ac_Mtfc[27][0]) ac_FloodDetect(playerid, 27);
        else AntiCheatInfo[playerid][acFloodCount][23] = AntiCheatInfo[playerid][acFloodCount][27] = 0;
    }
    AntiCheatInfo[playerid][acCall][27] = AntiCheatInfo[playerid][acCall][23] = ac_i;
    #if !defined _inc_y_hooks && !defined _INC_y_hooks\
        && defined ac_OnPlayerClickPlayerTextDraw
        return ac_OnPlayerClickPlayerTextDraw(playerid, playertextid);
    #else

Dabar numesk kod─ů i┼í OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) public'o.

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

prie┼í 15 valandas(-┼│), Timber para┼í─Ś:

Dabar numesk kod─ů i┼í OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) public'o.

kaip ji rast?

 

prie┼í 15 valandas(-┼│), Timber para┼í─Ś:

Dabar numesk kod─ů i┼í OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) public'o.

#if defined _inc_y_hooks || defined _INC_y_hooks
    Hook:ac_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
#else
    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
#endif
{
    if(AntiCheatInfo[playerid][acKicked]) return 0;
    new ac_i = GetTickCount();
    if(AntiCheatInfo[playerid][acACAllow][49])
    {
        if(ac_i < AntiCheatInfo[playerid][acCall][23] + ac_Mtfc[23][0]) return ac_FloodDetect(playerid, 23);
        if(ac_i < AntiCheatInfo[playerid][acCall][27] + ac_Mtfc[27][0]) ac_FloodDetect(playerid, 27);
        else AntiCheatInfo[playerid][acFloodCount][23] = AntiCheatInfo[playerid][acFloodCount][27] = 0;
    }
    AntiCheatInfo[playerid][acCall][27] = AntiCheatInfo[playerid][acCall][23] = ac_i;
    #if !defined _inc_y_hooks && !defined _INC_y_hooks\
        && defined ac_OnPlayerClickPlayerTextDraw
        return ac_OnPlayerClickPlayerTextDraw(playerid, playertextid);
    #else
        return 1;
    #endif
}

#if !defined _inc_y_hooks && !defined _INC_y_hooks
    #if defined _ALS_OnPlayerClickPlayerTextDra\
        || defined _ALS_OnPlayerClickPlayerTD || defined _ALS_OnPlayer\
        ClickPlayerTextDraw
        #undef OnPlayerClickPlayerTextDraw
    #else
        #define _ALS_OnPlayerClickPlayerTextDraw
    #endif
    #define OnPlayerClickPlayerTextDraw ac_OnPlayerClickPlayerTextDraw
    #if defined ac_OnPlayerClickPlayerTextDraw
        forward ac_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
    #endif
#endif

#if defined _inc_y_hooks || defined _INC_y_hooks
    Hook:ac_OnVehicleDamageStatusUpdate(vehicleid, playerid)
#else
    public OnVehicleDamageStatusUpdate(vehicleid, playerid)
#endif
 sita?

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

prie┼í 9 valandas(-┼│), YourLilSatan para┼í─Ś:

kaip ji rast?

 

#if defined _inc_y_hooks || defined _INC_y_hooks
    Hook:ac_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
#else
    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
#endif
{
    if(AntiCheatInfo[playerid][acKicked]) return 0;
    new ac_i = GetTickCount();
    if(AntiCheatInfo[playerid][acACAllow][49])
    {
        if(ac_i < AntiCheatInfo[playerid][acCall][23] + ac_Mtfc[23][0]) return ac_FloodDetect(playerid, 23);
        if(ac_i < AntiCheatInfo[playerid][acCall][27] + ac_Mtfc[27][0]) ac_FloodDetect(playerid, 27);
        else AntiCheatInfo[playerid][acFloodCount][23] = AntiCheatInfo[playerid][acFloodCount][27] = 0;
    }
    AntiCheatInfo[playerid][acCall][27] = AntiCheatInfo[playerid][acCall][23] = ac_i;
    #if !defined _inc_y_hooks && !defined _INC_y_hooks\
        && defined ac_OnPlayerClickPlayerTextDraw
        return ac_OnPlayerClickPlayerTextDraw(playerid, playertextid);
    #else
        return 1;
    #endif
}

#if !defined _inc_y_hooks && !defined _INC_y_hooks
    #if defined _ALS_OnPlayerClickPlayerTextDra\
        || defined _ALS_OnPlayerClickPlayerTD || defined _ALS_OnPlayer\
        ClickPlayerTextDraw
        #undef OnPlayerClickPlayerTextDraw
    #else
        #define _ALS_OnPlayerClickPlayerTextDraw
    #endif
    #define OnPlayerClickPlayerTextDraw ac_OnPlayerClickPlayerTextDraw
    #if defined ac_OnPlayerClickPlayerTextDraw
        forward ac_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
    #endif
#endif

#if defined _inc_y_hooks || defined _INC_y_hooks
    Hook:ac_OnVehicleDamageStatusUpdate(vehicleid, playerid)
#else
    public OnVehicleDamageStatusUpdate(vehicleid, playerid)
#endif
 sita?

Iš modo gamemodes direktorijoje.

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

prie┼í 2 valandas(-┼│), Timber para┼í─Ś:

Iš modo gamemodes direktorijoje.

radau tik toki:

else if(pDB[playerid][JobLeadAsistant] == 9) dyrikaz = "DyleriĐł Pavaduotojas(a)";
else if(pDB[playerid][JobLeadAsistant] == 10) dyrikaz = "Yardies Mafijos Pavaduotojas(a)";
else if(pDB[playerid][JobLeadAsistant] == 12) dyrikaz = "Corleone Mafijos Pavaduotojas(a)";
else if(pDB[playerid][JobLeadAsistant] == 14) dyrikaz = "ARAS BĐőrio Pavaduotojas(a)";
format(str, sizeof(str), "[PAV KOMANDA]%s %s(%d): %s", dyrikaz, vardasza, playerid, cmdtext);
PavadLog(str);
}else{
new vardz[MAX_PLAYER_NAME];
GetPlayerName(playerid, vardz, sizeof(vardz));
printf("[KOMANDA] %s(%d): %s", vardz, playerid, cmdtext);
}
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)    // <---
{
    new wVeiculo; wVeiculo = GetPlayerVehicleID(playerid);
    if(clickedid == wTuning1[6]) // X CLOSE
    {
        for(new i = 0; i < sizeof(wTuning1); i++) { TextDrawHideForPlayer(playerid, wTuning1); }
        for(new i = 0; i < sizeof(wTuning2); i++) { TextDrawHideForPlayer(playerid, wTuning2); }
        for(new i = 0; i < sizeof(wTuning3); i++) { TextDrawHideForPlayer(playerid, wTuning3); }
        for(new i = 0; i < sizeof(wTuning4); i++) { TextDrawHideForPlayer(playerid, wTuning4); }
        for(new i = 0; i < sizeof(wTuning5); i++) { TextDrawHideForPlayer(playerid, wTuning5); }
        CancelSelectTextDraw(playerid);
    }

    if(clickedid == wTuning1[7]) //WHEELS

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

prie┼í 1 valand─ů, YourLilSatan para┼í─Ś:

radau tik toki:

else if(pDB[playerid][JobLeadAsistant] == 9) dyrikaz = "DyleriĐł Pavaduotojas(a)";
else if(pDB[playerid][JobLeadAsistant] == 10) dyrikaz = "Yardies Mafijos Pavaduotojas(a)";
else if(pDB[playerid][JobLeadAsistant] == 12) dyrikaz = "Corleone Mafijos Pavaduotojas(a)";
else if(pDB[playerid][JobLeadAsistant] == 14) dyrikaz = "ARAS BĐőrio Pavaduotojas(a)";
format(str, sizeof(str), "[PAV KOMANDA]%s %s(%d): %s", dyrikaz, vardasza, playerid, cmdtext);
PavadLog(str);
}else{
new vardz[MAX_PLAYER_NAME];
GetPlayerName(playerid, vardz, sizeof(vardz));
printf("[KOMANDA] %s(%d): %s", vardz, playerid, cmdtext);
}
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)    // <---
{
    new wVeiculo; wVeiculo = GetPlayerVehicleID(playerid);
    if(clickedid == wTuning1[6]) // X CLOSE
    {
        for(new i = 0; i < sizeof(wTuning1); i++) { TextDrawHideForPlayer(playerid, wTuning1); }
        for(new i = 0; i < sizeof(wTuning2); i++) { TextDrawHideForPlayer(playerid, wTuning2); }
        for(new i = 0; i < sizeof(wTuning3); i++) { TextDrawHideForPlayer(playerid, wTuning3); }
        for(new i = 0; i < sizeof(wTuning4); i++) { TextDrawHideForPlayer(playerid, wTuning4); }
        for(new i = 0; i < sizeof(wTuning5); i++) { TextDrawHideForPlayer(playerid, wTuning5); }
        CancelSelectTextDraw(playerid);
    }

    if(clickedid == wTuning1[7]) //WHEELS

Tu radai OnPlayerClickTextDraw, o OnPlayerClickPlayerTextDraw nerandi?

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

Prisijungti prie diskusijos

Palikti atsakym─ů galite i┼í karto, o u┼żsiregistruoti v─Śliau. Jeigu jau turite paskyr─ů m┼źs┼│ forume, Prisijunkite.

Sve─Źias
Atsakyti šioje temoje...

×   ─«klijuotas tekstas turi teksto formatavim─ů.   Pa┼íalinti teksto formatavim─ů

  Galimi tik 75 veidukai.

×   Nuoroda buvo automati┼íkai ─»terpta.   ─«terpti nuorod─ů paprastai

×   J┼źs┼│ ankstesnis prane┼íimas buvo atkurtas.   I┼ívalyti redaktori┼│

×   J┼źs negalite ─»kelti nuotraukas tiesiogiai.─«kelkite arba ─»d─Śkite nuotraukas i┼í URL.


├Ś
├Ś
  • Sukurti nauj─ů...