[Pomoc] Gold

Započeo Black22, Januar 04, 2014, 12:05:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: NL
Detaljan opis problema: Ovako, sve je radilo normalno dok nisam izbacio hash include iz moda jer ga KGB hosting ne podnosi, pa kad je hash u modu onda je gamemode unkown. I sad ja se registriram i normalno mi da lvl 1 i 1000 $ u džep. Ali kad odem relog i logiram se da mi level 0 i 1000 golda i 0 $ u džep. Kao da se sve izmjenilo. Kako da to riješim ?
Dio skripte:
ovo je kad se logiram:
OcistiChat(extraid,16);
SCMF(extraid,0x0080FFC8,"{D3F5E9}LaWless RolePlay Server: {FFFFFF}Dobro dosli {D3F5E9}%s{FFFFFF}.", ime);

if(PI[extraid][Donator] > 0) SCMF(extraid, SVETLOPLAVA, "{D3F5E9}Imate jos %d donator gold-a.", PI[extraid][Donator]);
if(Izbacen == 1)
{
PI[extraid][Clan] = 0;
        PI[extraid][Rank] = 0;
          PI[extraid][Lider] = 0;
        if(PI[extraid][Pol] == 0) { PI[extraid][Skin] = 212; h_SetPlayerSkin(extraid, 212); }
else if(PI[extraid][Pol] == 1) { PI[extraid][Skin] = 211; h_SetPlayerSkin(extraid, 211); }
SCM(extraid, TAMNOCRVENA, "{fa5555}[!] Izbaceni ste iz svoje organizacije/mafije/bande!");
format(upit, 200, "UPDATE `Igraci` SET `Clan` = '0', `Lider` = '0', `Rank` = '0', `Skin` = '%d' WHERE `Ime` = '%s'", PI[extraid][Skin], hIme);
mysql_query(upit, THREAD_OSTALO);
}


ovo je pod onplayerconnect
PI[playerid][Nivo] = 1;
PI[playerid][Banovan] = 0;
PI[playerid][Admin] = 0;
PI[playerid][GM] = 0;
PI[playerid][Donator]               =               0;
PI[playerid][Novac]                 =               1000;
PI[playerid][Banka]                 =               500;
PI[playerid][Iskustvo]              =               0;
PI[playerid][SatiIgre]              =               0;
PI[playerid][Godine]                =               0;
PI[playerid][Pol]                   =               0;
PI[playerid][Skin]                  =               0;
PI[playerid][Clan]                  =               0;
PI[playerid][Lider]                 =               0;
PI[playerid][Rank]                  =               0;
PI[playerid][Kuca]                  =               -1;
PI[playerid][Stan]                  =               -1;
PI[playerid][Vikendica]             =               -1;
PI[playerid][Firma]                 =               -1;
PI[playerid][JFirma]                =               -1;
PI[playerid][Garaza]                =               -1;
PI[playerid][Hotel]                 =               -1;
PI[playerid][Auto1]                 =               -1;
PI[playerid][Auto2]                 =               -1;
PI[playerid][Motor]                 =               -1;
PI[playerid][Bicikla]               =               -1;
PI[playerid][Plovilo]               =               -1;
PI[playerid][Letelica]              =               -1;
PI[playerid][Zatvoren]              =               0;
PI[playerid][ZatvorenVreme]         =               0;
PI[playerid][Utisan]                =               0;
PI[playerid][Opomenut]              =               0;
PI[playerid][KaznjenPuta]           =               0;
PI[playerid][Telefon]               =               -1;
PI[playerid][Mobilni]               =               0;
PI[playerid][KreditMobilni]         =               0;
PI[playerid][SakrivanjeBroja]       =               0;
PI[playerid][MozeDaGasiMobilni]     =               0;
PI[playerid][MozeDaGasiSapat]       =               0;
PI[playerid][MozeDaGasiFamily]      =               0;
PI[playerid][DozvolaOruzje]     =               0;
PI[playerid][DozvolaVoznja]         =               0;
PI[playerid][DozvolaPlovidba]       =               0;
PI[playerid][DozvolaLetenje]        =               0;
PI[playerid][Droga]                 =               0;
PI[playerid][IznosRate]             =               0;
PI[playerid][IznosKredita]          =               0;
PI[playerid][PreostaloZaOtplatu]    =               0;
PI[playerid][Posao]                 =               0;
PI[playerid][IRCAdmin]              =               0;
PI[playerid][IRCSoba]               =               0;
PI[playerid][IRCSobaAdmin]          =               0;
PI[playerid][PayDayPoeni]           =               0;
PI[playerid][TimUgovor]             =               0;
PI[playerid][KaznaUgovor]           =               0;
PI[playerid][UBraku]                =               0;
PI[playerid][Ubistava]              =               0;
PI[playerid][Smrti]                 =               0;
PI[playerid][Zlocini]               =               0;
PI[playerid][UhapsenPuta]           =               0;
PI[playerid][TrazeniNivo]           =               0;
PI[playerid][Spawn]                 =               0;
PI[playerid][Zavezan]               =               0;
PI[playerid][PosaoUgovor]           =               0;
PI[playerid][MehanicarOdvoz]        =               0;
PI[playerid][DzeparosVreme]         =               0;
PI[playerid][KradljivacVreme]       =               0;
PI[playerid][DetektivVreme]         =               0;
PI[playerid][DetektivSkill]         =               0;
PI[playerid][Ucena]                 =               0;
PI[playerid][MestoUOrg]             =               0;
PI[playerid][Renta]                 =               -1;
PI[playerid][RentaHotel]            =               -1;
PI[playerid][RegProces]             =               0;
PI[playerid][GPS]                   =               0;
PI[playerid][BorbeniStil]           =               7;
PI[playerid][KarticaPin]            =               -1;
PI[playerid][AlatZaObijanje]        =               -1;
PI[playerid][Kaciga]             =               -1;
PI[playerid][KaciguIma]             =               -1;
PI[playerid][NaocareModel]         =               0;
PI[playerid][DonatorG]              =              0;
PI[playerid][DonatorA]              =              0;
PI[playerid][DozvolaKamion]         =              0;
PI[playerid][Frizura]             =               0;
Stvari[playerid][zTorba] = 0;
Stvari[playerid][zDroga] = 0;
Stvari[playerid][zPizza] = 0;
Stvari[playerid][zZice] = 0;
Stvari[playerid][zKanister] = 0;
Stvari[playerid][zSemena] = 0;
Stvari[playerid][zKoka] = 0;
Stvari[playerid][zGDOruzje] = 0;
Stvari[playerid][zGDProdaja] = 0;
Stvari[playerid][zUze] = 0;
Stvari[playerid][zCigare] = 0;
Dzep[playerid][xDroga] = 0;
Dzep[playerid][xZice] = 0;
Dzep[playerid][xKoka] = 0;
Dzep[playerid][xSemena] = 0;
Dzep[playerid][xUze] = 0;
Dzep[playerid][xNaocare] = 0;
Dzep[playerid][xCigare] = 0;
Dzep[playerid][xUpaljac] = 0;
PI[playerid][Tiket] = 0;
    PI[playerid][Pasos]      = 0;
    PI[playerid][BrojLicneKarte]    = 0;// by ROBBY
    PI[playerid][Osiguranje]      = 0;

    PI[playerid][Snaga]          = 0;
    PI[playerid][pSpretnost]      = 0;
    PI[playerid][Inteligencija]      = 0;
    PI[playerid][pDiploma]          = 0;
    PI[playerid][pBiblioteka]          = 0;
    PI[playerid][pBilbVreme]          = 0;
    PI[playerid][pTeretVreme]          = 0;
    PI[playerid][pTeretana]          = 0;

Stvari[playerid][pMlekoInv]         =               0;
Stvari[playerid][pKrofnaPek]        =               0;
Stvari[playerid][pPalacinkaPek]     =               0;
Stvari[playerid][pKiflaPek]         =               0;
Stvari[playerid][pBakinkolacPek]    =               0;
Stvari[playerid][pHlebPek]          =               0;
Stvari[playerid][pBagetPek]         =               0;
Stvari[playerid][pCipsInv]          =               0;
Stvari[playerid][pJogurtInv]        =               0;
Stvari[playerid][pHlebInv]          =               0;
Stvari[playerid][pSokInv]          =               0;

Neke slike/video za lakse dobivanje pomoci(neobavezno):

sve dobro radi ali kad maknem include hash onda ne radi

public OnPlayerDisconnect(playerid, reason)
{
if(playerid == -1) return 1;

if ( CenaKazne[playerid] > 0 )
{
ClearChatbox(playerid, 10);
SCM(playerid, GRAD2, "  SLEDECIM ULASKOM NA SERVER IDETE 10min U ZATVOR ZBOG NEPLACENIH TIKETA !!!");
SetTimerEx("Unfreeze",6000,0,"i",playerid);
new kkk[MAX_PLAYER_NAME], upit[180];
ImeIgraca(playerid, kkk);
PI[playerid][KaznjenPuta]++;
format(upit, 180, "UPDATE `Igraci` SET `KaznjenPuta` = '%d', `Zatvoren` = '1', `ZatvorenVreme` = '%d' WHERE `Ime` = '%s'", PI[playerid][KaznjenPuta], 600, kkk);
mysql_query(upit, THREAD_OSTALO);
}

new PlayeridIme[MAX_PLAYER_NAME], StringProvera2[215],  godina, mesec, dan, sat, minut, sekund;
GetPlayerName(playerid, PlayeridIme, sizeof PlayeridIme);
getdate(godina, mesec, dan);
gettime(sat, minut, sekund);
    switch(reason)
    {
        case 0: format(StringProvera2,sizeof StringProvera2,"{C0C0C0}*****   %s[%d] je napustio server. Razlog: (Crash)  Datum: %d/%d/%d | Vreme: %d:%d:%d     *****", PlayeridIme, playerid, dan, mesec, godina, sat, minut);
        case 1: format(StringProvera2,sizeof StringProvera2,"{C0C0C0}*****   %s[%d] je napustio server. Razlog: (Svojevoljno)   Datum: %d/%d/%d | Vreme: %d:%d:%d     *****", PlayeridIme, playerid, dan, mesec, godina, sat, minut);
        case 2: format(StringProvera2,sizeof StringProvera2,"{C0C0C0}*****   %s[%d] je napustio server. Razlog: (Kick/Ban)   Datum: %d/%d/%d | Vreme: %d:%d:%d     *****", PlayeridIme, playerid, dan, mesec, godina, sat, minut);
    }
    StaffPoruka(CRVENA, StringProvera2);
   
DestroyDynamic3DTextLabel(HelperDuznostLabel[playerid]);
    GMDuznost[playerid] = 0;
    DestroyDynamic3DTextLabel(DuznostLabel[playerid]);
AdminDuznost[playerid] = 0; // by ROBBY
    if( PI[playerid][pSmecePosao] == 1 ) DestroyObject( otpad[ playerid ] );
    PI[playerid][pSmecePosao] = 0;
    PI[playerid][pZarada] = 0;
   
SetPVarInt(playerid, "laser", 0);
RemovePlayerAttachedObject(playerid, 0);
    TextDrawHideForPlayer(playerid, Vremee);
TextDrawHideForPlayer(playerid, Datum);
TextDrawHideForPlayer(playerid, verzija);
TextDrawHideForPlayer(playerid, Textdraw0 );
TextDrawHideForPlayer(playerid, ExpTD[playerid]);
TextDrawHideForPlayer(playerid, Textdraw2 );
TextDrawHideForPlayer(playerid, Textdraw3 );
TextDrawHideForPlayer(playerid, Textdraw4[playerid] );
TextDrawHideForPlayer(playerid, Textdraw5 );
TextDrawHideForPlayer(playerid, Textdraw6 );
TextDrawHideForPlayer(playerid, Obavestenje0 );
TextDrawHideForPlayer(playerid, Obavestenje1 );
TextDrawHideForPlayer(playerid, Obavestenje2 );
TextDrawHideForPlayer(playerid, Obavestenje3 );
TextDrawHideForPlayer(playerid, Obavestenje4 );
    IsInBus[playerid] = 0;
    IgracNaLecenju[playerid] = 0;
VremeLecenja[playerid] = 0;
    VremePljacke[playerid] = 0;
NaPolaganju[playerid] = 0;
Konj[playerid]=0;
UKuci[playerid] = 0;
UStanu[playerid] = 0;
PolaganjeCP[playerid] = 0;
ZradstvenoOsiguranje[playerid] = 0;
ZOOvjereno[playerid] = 0;
Mljekodio[playerid] = 0;
PlayerTextDrawDestroy(playerid,pTEXT0[playerid]);
PlayerTextDrawDestroy(playerid,pTEXT1[playerid]);
PlayerTextDrawDestroy(playerid,pTEXT2[playerid]);
PlayerTextDrawDestroy(playerid,pTEXT3[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD0[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD1[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD2[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD3[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD4[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD5[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD6[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD7[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD8[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD9[playerid]);
PlayerTextDrawDestroy(playerid,StatusTD12[playerid]);
DestroyDynamicObject(MljekoKutije[playerid][0]);
DestroyDynamicObject(MljekoKutije[playerid][1]);
DestroyDynamicObject(MljekoKutije[playerid][2]);
// ============================================== [ Kiwi Bot ] ==============================================
// ========================================= [ OnPlayerDisconnect ] =========================================
ResetPlayerWeaponsEx(playerid);
JoypadOtkriven[playerid] = 0;
TeleportOtkriven[playerid] = 0;
TeleportUdaljenost[playerid] = 0;
IskocioIzHelica[playerid] = 0;
strmid(TeleportStaraZona[playerid], "", 0, strlen(""), 100);
strmid(TeleportNovaZona[playerid], "", 0, strlen(""), 100);
for(new i = 0; i < sizeof OruzjeOtkriveno; i++) OruzjeOtkriveno[i][playerid] = -1;
LoadPosition[playerid] = 0;
BezanjeOtkriveno[playerid] = 0;
PoslednjeVozilo[playerid] = INVALID_VEHICLE_ID;
hDialogID[playerid] = -1;
TeleportDozvoljen[playerid] = 0;
ideBrzinom[playerid] = -1;
IgracSpawnan[playerid] = 0;

DestroyVehicle(GetPVarInt(playerid,"Vozilo"));
    SetPVarInt(playerid,"Vozilo",999);
KillTimer(Timer[playerid]); //sudar
    KillTimer(Choque[playerid]); //sudar
    Informacion[playerid][Manejando] = 0; //sudar
// ==========================================================================================================
    hDobioPay[playerid] = 0;
if(hIgracUlogovan[playerid] == 1)
{
    if(Prepreka1Kreirana[playerid] == true) DestroyDynamicObject(Prepreka1[playerid]);
if(Prepreka2Kreirana[playerid] == true) DestroyDynamicObject(Prepreka2[playerid]);
if(Prepreka3Kreirana[playerid] == true) DestroyDynamicObject(Prepreka3[playerid]);
if(Prepreka4Kreirana[playerid] == true) DestroyDynamicObject(Prepreka4[playerid]);
if(Blokada1Kreirana[playerid] == true) DestroyDynamicObject(Blokada1[playerid]);
if(Blokada2Kreirana[playerid] == true) DestroyDynamicObject(Blokada2[playerid]);
if(Blokada3Kreirana[playerid] == true) DestroyDynamicObject(Blokada3[playerid]);
if(Blokada4Kreirana[playerid] == true) DestroyDynamicObject(Blokada4[playerid]);
if(Blokada5Kreirana[playerid] == true) DestroyDynamicObject(Blokada5[playerid]);
    if(PosadioPolje1[playerid] == true)
{
MoveDynamicObject(polje1[1], 258.69042969,1152.42285156,8.48194408, 2.500);
    MoveDynamicObject(polje1[2], 254.68945312,1152.42285156,8.62819481, 2.500);
    MoveDynamicObject(polje1[3], 250.68945312,1152.42285156,8.85194397, 2.500);
    MoveDynamicObject(polje1[4], 246.66503906,1152.42187500,9.08194447, 2.500);
    Polje1Posadjeno = false;
    Polje1SpremnoZaBranje = false;
    KillTimer_H(Polje1TimerSrednje);
    KillTimer_H(Polje1TimerZrelo);
    KillTimer_H(Polje1TimerUnisti);
}
if(PosadioPolje2[playerid] == true)
{
    MoveDynamicObject(polje2[1], 258.69042969,1144.42285156,8.18194389, 2.500);
    MoveDynamicObject(polje2[2], 254.68945312,1144.42285156,8.38194370, 2.500);
    MoveDynamicObject(polje2[3], 250.68945312,1144.42285156,8.58194447, 2.500);
    MoveDynamicObject(polje2[4], 246.66503906,1144.42187500,8.68194389, 2.500);
    Polje2Posadjeno = false;
    Polje2SpremnoZaBranje = false;
    KillTimer_H(Polje2TimerSrednje);
    KillTimer_H(Polje2TimerZrelo);
    KillTimer_H(Polje2TimerUnisti);
}
if(PosadioPolje3[playerid] == true)
{
MoveDynamicObject(polje3[1], 258.69042969,1136.42285156,7.70194340, 2.500);
    MoveDynamicObject(polje3[2], 254.68945312,1136.42285156,8.00194359, 2.500);
    MoveDynamicObject(polje3[3], 250.68945312,1136.42285156,8.18194389, 2.500);
    MoveDynamicObject(polje3[4], 246.66503906,1136.42187500,8.38194370, 2.500);
    Polje3Posadjeno = false;
    Polje3SpremnoZaBranje = false;
    KillTimer_H(Polje3TimerSrednje);
    KillTimer_H(Polje3TimerZrelo);
    KillTimer_H(Polje3TimerUnisti);
}
if(PosadioPolje4[playerid] == true)
{
    MoveDynamicObject(polje4[1], 258.69042969,1128.42285156,7.58194351, 2.500);
    MoveDynamicObject(polje4[2], 254.68945312,1128.42285156,7.68019390, 2.500);
    MoveDynamicObject(polje4[3], 250.68945312,1128.42285156,7.90194464, 2.500);
    MoveDynamicObject(polje4[4], 246.66503906,1128.42187500,8.08194351, 2.500);
    Polje4Posadjeno = false;
    Polje4SpremnoZaBranje = false;
    KillTimer_H(Polje4TimerSrednje);
    KillTimer_H(Polje4TimerZrelo);
    KillTimer_H(Polje4TimerUnisti);
}
if(PosadioPolje5[playerid] == true)
{
MoveDynamicObject(polje5[1], 236.66503906,1152.42187500,9.50194454, 2.500);
    MoveDynamicObject(polje5[2], 232.66503906,1152.42187500,9.90194416, 2.500);
    MoveDynamicObject(polje5[3], 228.66503906,1152.42187500,10.20194435, 2.500);
    MoveDynamicObject(polje5[4], 224.66503906,1152.42187500,10.49194431, 2.500);
    Polje5Posadjeno = false;
    Polje5SpremnoZaBranje = false;
    KillTimer_H(Polje5TimerSrednje);
    KillTimer_H(Polje5TimerZrelo);
    KillTimer_H(Polje5TimerUnisti);
}
if(PosadioPolje6[playerid] == true)
{
    MoveDynamicObject(polje6[1], 236.66503906,1144.42187500,9.20194435, 2.500);
    MoveDynamicObject(polje6[2], 232.66503906,1144.42187500,9.58019447, 2.500);
    MoveDynamicObject(polje6[3], 228.66503906,1144.42187500,9.90194416, 2.500);
    MoveDynamicObject(polje6[4], 224.66503906,1144.42187500,10.20194435, 2.500);
    Polje6Posadjeno = false;
    Polje6SpremnoZaBranje = false;
    KillTimer_H(Polje6TimerSrednje);
    KillTimer_H(Polje6TimerZrelo);
    KillTimer_H(Polje6TimerUnisti);
}
if(PosadioPolje7[playerid] == true)
{
MoveDynamicObject(polje7[1], 236.66503906,1136.42187500,8.80194378, 2.500);
    MoveDynamicObject(polje7[2], 232.66503906,1136.42187500,9.20194340, 2.500);
    MoveDynamicObject(polje7[3], 228.66503906,1136.42187500,9.59194469, 2.500);
    MoveDynamicObject(polje7[4], 224.66503906,1136.42187500,9.96094418, 2.500);
    Polje7Posadjeno = false;
    Polje7SpremnoZaBranje = false;
    KillTimer_H(Polje7TimerSrednje);
    KillTimer_H(Polje7TimerZrelo);
    KillTimer_H(Polje7TimerUnisti);
}
if(PosadioPolje8[playerid] == true)
{
    MoveDynamicObject(polje8[1], 236.66503906,1128.42187500,8.50019360, 2.500);
    MoveDynamicObject(polje8[2], 232.66503906,1128.42187500,8.90194511, 2.500);
    MoveDynamicObject(polje8[3], 228.66503906,1128.42187500,9.30919456, 2.500);
    MoveDynamicObject(polje8[4], 224.66503906,1128.42187500,9.60919380, 2.500);
    Polje8Posadjeno = false;
    Polje8SpremnoZaBranje = false;
    KillTimer_H(Polje8TimerSrednje);
    KillTimer_H(Polje8TimerZrelo);
    KillTimer_H(Polje8TimerUnisti);
}
if(IgracPolaze[playerid] == 1)
{
polaganjeigraca -= 1;
}
if(ecp[playerid] != 0)
{
Prisustvuje[playerid] = false;
vorcp[playerid] = 0;

}
//IgracSeDiskonektuje(playerid);
ResetPlayerWeaponsEx(playerid);
//for(new i = 1; i < 12; i++) { SacuvajIgraca(i, playerid); }
//SacuvajIgraca(playerid);

new str[50];
  getdate(godina, mesec, dan);
    gettime(sat, minut, sekund);
    format(str, 21, "%d/%d/%d u %d:%d:%d", dan, mesec, godina, sat, minut, sekund);
new kkk[MAX_PLAYER_NAME];
ImeIgraca(playerid, kkk);
new upit[128];
format(upit, 128, "UPDATE `Igraci` SET `Novac` = '%d' WHERE `Ime` = '%s'", PI[playerid][Novac], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Nivo` = '%d' WHERE `Ime` = '%s'", PI[playerid][Nivo], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Donator` = '%d' WHERE `Ime` = '%s'", PI[playerid][Donator], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Banka` = '%d' WHERE `Ime` = '%s'", PI[playerid][Banka], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Iskustvo` = '%d' WHERE `Ime` = '%s'", PI[playerid][Iskustvo], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `SatiIgre` = '%d' WHERE `Ime` = '%s'", PI[playerid][SatiIgre], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Zatvoren` = '%d' WHERE `Ime` = '%s'", PI[playerid][Zatvoren], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `ZatvorenVreme` = '%d' WHERE `Ime` = '%s'", PI[playerid][ZatvorenVreme], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Utisan` = '%d' WHERE `Ime` = '%s'", PI[playerid][Utisan], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `KreditMobilni` = '%d' WHERE `Ime` = '%s'", PI[playerid][KreditMobilni], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `SakrivanjeBroja` = '%d' WHERE `Ime` = '%s'", PI[playerid][SakrivanjeBroja], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `IznosRate` = '%d' WHERE `Ime` = '%s'", PI[playerid][IznosRate], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `PreostaloZaOtplatu` = '%d' WHERE `Ime` = '%s'", PI[playerid][PreostaloZaOtplatu], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `PayDayPoeni` = '%d' WHERE `Ime` = '%s'", PI[playerid][PayDayPoeni], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `TimUgovor` = '%d' WHERE `Ime` = '%s'", PI[playerid][TimUgovor], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `KaznaUgovor` = '%d' WHERE `Ime` = '%s'", PI[playerid][KaznaUgovor], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Ubistava` = '%d' WHERE `Ime` = '%s'", PI[playerid][Ubistava], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Smrti` = '%d' WHERE `Ime` = '%s'", PI[playerid][Smrti], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Zlocini` = '%d' WHERE `Ime` = '%s'", PI[playerid][Zlocini], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `TrazeniNivo` = '%d' WHERE `Ime` = '%s'", PI[playerid][TrazeniNivo], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Spawn` = '%d' WHERE `Ime` = '%s'", PI[playerid][Spawn], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Zavezan` = '%d' WHERE `Ime` = '%s'", PI[playerid][Zavezan], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `PosaoUgovor` = '%d' WHERE `Ime` = '%s'", PI[playerid][PosaoUgovor], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `MehanicarOdvoz` = '%d' WHERE `Ime` = '%s'", PI[playerid][MehanicarOdvoz], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `DzeparosVreme` = '%d' WHERE `Ime` = '%s'", PI[playerid][DzeparosVreme], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `KradljivacVreme` = '%d' WHERE `Ime` = '%s'", PI[playerid][KradljivacVreme], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `DetektivSkill` = '%d' WHERE `Ime` = '%s'", PI[playerid][DetektivSkill], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Ucena` = '%d' WHERE `Ime` = '%s'", PI[playerid][Ucena], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `MestoUOrg` = '%d' WHERE `Ime` = '%s'", PI[playerid][MestoUOrg], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `RentaHotel` = '%d' WHERE `Ime` = '%s'", PI[playerid][RentaHotel], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `KarticaPin` = '%d' WHERE `Ime` = '%s'", PI[playerid][KarticaPin], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `MobilniMreza` = '%s' WHERE `Ime` = '%s'", PI[playerid][MobilniMreza], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `MobilniMarka` = '%s' WHERE `Ime` = '%s'", PI[playerid][MobilniMarka], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zTorba` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zTorba], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zDroga` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zDroga], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zPizza` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zPizza], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zZice` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zZice], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zKanister` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zKanister], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zSemena` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zSemena], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zKoka` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zKoka], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zGDOruzje` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zGDOruzje], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Putovnica` = '%d' WHERE `Ime` = '%s'", PI[playerid][Pasos], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Osiguranje` = '%d' WHERE `Ime` = '%s'", PI[playerid][Osiguranje], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `NaocareModel` = '%d' WHERE `Ime` = '%s'", PI[playerid][NaocareModel], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `DonatorG` = '%d' WHERE `Ime` = '%s'", PI[playerid][DonatorG], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `DonatorA` = '%d' WHERE `Ime` = '%s'", PI[playerid][DonatorA], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `DozvolaKamion` = '%d' WHERE `Ime` = '%s'", PI[playerid][DozvolaKamion], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zGDProdaja` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zGDProdaja], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zUze` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zUze], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `zCigare` = '%d' WHERE `Ime` = '%s'", Stvari[playerid][zCigare], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xDroga` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xDroga], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xZice` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xZice], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xKoka` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xKoka], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xSemena` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xSemena], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xUze` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xUze], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xNaocare` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xNaocare], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xImenik` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xImenik], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xCigare` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xCigare], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `xUpaljac` = '%d' WHERE `Ime` = '%s'", Dzep[playerid][xUpaljac], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `PoslednjaAktivnost` = '%s' WHERE `Ime` = '%s'", str, kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Inteligencija` = '%s' WHERE `Ime` = '%s'", PI[playerid][Inteligencija], kkk);
mysql_query(upit, THREAD_OSTALO);
format(upit, 128, "UPDATE `Igraci` SET `Snaga` = '%s' WHERE `Ime` = '%s'", PI[playerid][Snaga], kkk);
mysql_query(upit, THREAD_OSTALO);



    hIgracUlogovan[playerid] = 0;

if(RazgovaraSa[playerid] != -1)
{
        GameTextForPlayer(RazgovaraSa[playerid], "~r~Veza se prekinula!", 3000, 5);
    if(PozivZa[playerid] != -1) KillTimer_H(naplatipoziv[playerid]);
if(ZoveGa[playerid] != -1) KillTimer_H(naplatipoziv[RazgovaraSa[playerid]]);
        SetPlayerSpecialAction(RazgovaraSa[playerid], SPECIAL_ACTION_STOPUSECELLPHONE);
        RemovePlayerAttachedObject(RazgovaraSa[playerid], 5);
        ZoveGa[RazgovaraSa[playerid]] = -1;
        PozivZa[RazgovaraSa[playerid]] = -1;
        RazgovaraSa[RazgovaraSa[playerid]] = -1;
        ZoveGa[playerid] = -1;
        PozivZa[playerid] = -1;
        RazgovaraSa[playerid] = -1;
}
kvcp[playerid] = 0;
zacp[playerid] = 0;
KosiTravu[playerid] = 0;
KillTimer(PPTIMER[playerid]);
KillTimer(PPTIMER2[playerid]);
        RaznosiNovac[playerid] = 0;
if(GPSAktivan[playerid] == 1) DestroyDynamicObject(GPSObjekat[playerid]);

if(hGledaStats[playerid] > 0)
{
        PlayerTextDrawHide(playerid, StatusTD0[playerid]);
        PlayerTextDrawHide(playerid, StatusTD1[playerid]);
PlayerTextDrawHide(playerid, StatusTD2[playerid]);
PlayerTextDrawHide(playerid, StatusTD3[playerid]);
PlayerTextDrawHide(playerid, StatusTD4[playerid]);
PlayerTextDrawHide(playerid, StatusTD5[playerid]);
PlayerTextDrawHide(playerid, StatusTD6[playerid]);
PlayerTextDrawHide(playerid, StatusTD7[playerid]);
PlayerTextDrawHide(playerid, StatusTD8[playerid]);
PlayerTextDrawHide(playerid, StatusTD9[playerid]);
PlayerTextDrawHide(playerid, StatusTD12[playerid]);
}
if(BiraVozilo[playerid] > 0)
{
  AutosalonTD(playerid, 0);
}
if(rPodesavanjeLika[playerid] > 0)
{
}
if(BiraSkin[playerid] == true)
{
Odeca(playerid, 0);
}
if(BankomatAkcija[playerid] != 0)
{
  ATM(playerid, 0);
}
if(IznajmioVozilo[playerid] != -1)
{
    SetVehicleToRespawn(RentVozilo[IznajmioVozilo[playerid]]);
    //SetVehicleToRespawn(RentAuta[IznajmioVozilo[playerid]]);
    VoziloIznajmljeno[IznajmioVozilo[playerid]] = -1;
}
if(hObijanjeVozila[playerid] != -1) KillTimer_H(obijanjevozila[playerid]);
if(VoziSeBusom[playerid] == 1) KillTimer_H(busvoznja[playerid]);
if(VoziSeTaxijem[playerid] == 1) KillTimer_H(taxivoznja[playerid]);
if(MDPozivalac == playerid) MDPozivalac = -1;
if(TaxiPozivalac == playerid) TaxiPozivalac = -1;
if(BusPozivalac == playerid) BusPozivalac = -1;
if(MehPozivalac == playerid) MehPozivalac = -1;
new ime[MAX_PLAYER_NAME], wtf[12];
RPIme(playerid, ime);
switch(reason)
{
    case 0: wtf = "timeout";
    case 1: wtf = "izasao";
    case 2: wtf = "kick/ban";
}
if(IgracUWaru[playerid] == 1)
{
    foreach(Player, i)
    {
        if(PI[i][Clan] == PI[playerid][Clan])//33
        {
            IgracUWaru[playerid] = 0;
            SCMF(i, CRVENA, "(war) Igrac %s je napustio server! (%s)", ime, wtf);
}
}
ClanovaUWaru[PI[playerid][Clan]]--;
}
if(Intervju[playerid] != -1)
{
    foreach(Player, i)
    {
        if(IsPlayerConnected(i) && Intervju[i] == 555)
        {
            RPIme(playerid, ime);
            SCMF(playerid, SVETLOPLAVA, "{fa5555}[!] %s je napustio intervju.", ime);
}
}
}
if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
if(IsPlayerAttachedObjectSlotUsed(playerid, 5)) RemovePlayerAttachedObject(playerid, 5);
if(IsPlayerAttachedObjectSlotUsed(playerid, 6)) RemovePlayerAttachedObject(playerid, 6);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
    new f = 0;
foreach(Player, i)
{
if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid) && GetPlayerState(i) != PLAYER_STATE_DRIVER) f++;
}
if(f == 0) SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
if(hSecenje[playerid] == 1 || hSecenje[playerid] == 2) DestroyDynamicObject(Drvo[playerid]);
foreach(Player, i)
{
    if(Meta[i] == playerid)
    {
        SCM(i, ZUTA, "** Vasa meta je napustila server.");
        Meta[i] = -1;
}
}
PI[playerid][Ucena] = 0;
Meta[playerid] = -1;
PI[playerid][Admin] = 0;
PI[playerid][GM] = 0;
if(hBiraEnt[playerid] > 0) lkiTD(playerid, 0, "_");
if(IgracNaReconu[playerid] == true) { InfoTD(playerid, 0, "_", "_"); }
PlusTD(playerid, 0, "_");
MinusTD(playerid, 0, "_");
foreach(Player, i)
{
    if(hPrihvatio[i] == playerid)
    {
        hPrihvatio[i] = -1;
        GameTextForPlayer(i, "~r~Pozivalac napustio igru", 5000, 1);
        h_DisablePlayerCheckpoint(i);
}
}
if(KomeProdaje[playerid] != -1) SCM(KomeProdaje[playerid], SVETLOCRVENA, "Igrac koji Vam je poslao ponudu je nazalost napustio server.");
if(PonudioIgrac[playerid] != -1) SCM(PonudioIgrac[playerid], SVETLOCRVENA, "Igrac kome ste poslali ponudu je nazalost napustio server.");
if(KomeProdaje[playerid] != -1)
{
StaProdaje[KomeProdaje[playerid]] = 0;
CenaProdaje[KomeProdaje[playerid]] = 0;
PonudioIgrac[KomeProdaje[playerid]] = -1;
KomeProdaje[KomeProdaje[playerid]] = -1;
}
}
PlayerTextDrawDestroy(playerid, pTEXT0[playerid]);
pTEXT0[playerid] = PlayerText:INVALID_TEXT_DRAW;

PlayerTextDrawDestroy(playerid, pTEXT1[playerid]);
pTEXT1[playerid] = PlayerText:INVALID_TEXT_DRAW;

PlayerTextDrawDestroy(playerid, pTEXT2[playerid]);
pTEXT2[playerid] = PlayerText:INVALID_TEXT_DRAW;

PlayerTextDrawDestroy(playerid, pTEXT3[playerid]);
pTEXT3[playerid] = PlayerText:INVALID_TEXT_DRAW;
return 1;
}
Poslednja Izmena: Januar 05, 2014, 10:40:21 PRE PODNE od Joe_Black

Nemoj hashovati vec samo cuvaj lozinku kao string...
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).