[Pomoc] Nista se ne sprema

Započeo Mladen Smiljan, Jun 16, 2011, 08:35:57 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: -
Detaljan opis problema: Evo ja koristim bas ovu FS za reg/log sistem: http://www.2shared.com/file/OsrhKy-i/login.html  I kada napisem da imam 500$ potrosim 100 i nezeli ste spremiti da sam potrosio 100$, pa ako mozete pogledati zasto se to ne sprema podaci....
Dio skripte: Save
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Hvala unaprijed...
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

Već ti je ovo treća tema ista
Poslednja Izmena: Jun 16, 2011, 08:43:45 PRE PODNE od Non-Stop Samper

Hahah ko mu kaze...

ON:Daj vamo OnPlayerDisconnect

Šta je šta se ti smiješ papogledaj malo

CitatON:Daj vamo OnPlayerDisconnect

Imas gore link za skinuti cjelu pa pogledaj a sad cu izvuci on player disconnect.
Evo: http://pastebin.com/CndjkbZp

Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

Mladen posljednje upozorenje ovo ti je treca tema u roku pola dana.
Ovu cu ti ostavit posto su one dvije Lockane ali nemoj da se ponavlja.
@ Nonstop spamer smiri sa tim spamom.

Citat: Non-Stop Samper poslato Jun 16, 2011, 10:34:04 PRE PODNE
Šta je šta se ti smiješ papogledaj malo

Prestani da spamas... Neko ce da te prijavi Super Moderatoru... Nisi Nonstop samper nego nonstop spamer.. -.- Ako ne znas da pomognes nemoj nista da odgovaras.. samo skupljas postove koje nisi zasluzio.. -.-"

Daj nam OnPlayerDisconnect.. nesto ti ne valja...

P.S. To se moze srediti InGame ako pre izlaska kucas /logout.. tada ce se sigurno spremiti ;)

Evo sad cu pokusati napraviti komandu logout

public OnPlayerDisconnect(playerid, reason)
{
   new string[128];
       format(string,sizeof(string),"%d Minutes",TimE[playerid]);
   new Float:Health,Float:Armour; GetPlayerHealth(playerid,Health); GetPlayerArmour(playerid,Armour);
       KillTimer(timeupdate);
       if(pInfo[playerid][Registered] == 1 && pInfo[playerid][LoggedIn] == 1)
       {
   new file[100],Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
       format(file,sizeof(file),PlayerFile,Name);
       new pName[24]; GetPlayerName(playerid,pName,24); new IP[16]; GetPlayerIp(playerid,IP,16);
       dini_Set(file, "Name", pName);
       dini_Set(file, "Ip Adress", IP);
       dini_IntSet(file,"Money",GetPlayerMoney(playerid));
       dini_IntSet(file,"Score",GetPlayerScore(playerid));
       dini_IntSet(file,"Kills",pInfo[playerid][Kills]);
       dini_IntSet(file,"Deaths",pInfo[playerid][Deaths]);
       dini_IntSet(file,"Skin",GetPlayerSkin(playerid));
       dini_IntSet(file,"Wanted Level",GetPlayerWantedLevel(playerid));
       dini_Set(file,"Time On Server",string);
       dini_IntSet(file,"Interior",GetPlayerInterior(playerid));
       dini_IntSet(file,"Virtual World",GetPlayerVirtualWorld(playerid));
       dini_IntSet(file,"Drunk Level",GetPlayerDrunkLevel(playerid));
       dini_IntSet(file,"Fighting Style",GetPlayerFightingStyle(playerid));
       dini_IntSet(file,"Team",GetPlayerTeam(playerid));
   GetPlayerWeaponData(playerid,0,pInfo[playerid][Wep1],pInfo[playerid][Ammo1]);
       GetPlayerWeaponData(playerid,1,pInfo[playerid][Wep2],pInfo[playerid][Ammo2]);
       GetPlayerWeaponData(playerid,2,pInfo[playerid][Wep3],pInfo[playerid][Ammo3]);
       GetPlayerWeaponData(playerid,3,pInfo[playerid][Wep4],pInfo[playerid][Ammo4]);
       GetPlayerWeaponData(playerid,4,pInfo[playerid][Wep5],pInfo[playerid][Ammo5]);
       GetPlayerWeaponData(playerid,5,pInfo[playerid][Wep6],pInfo[playerid][Ammo6]);
       GetPlayerWeaponData(playerid,6,pInfo[playerid][Wep7],pInfo[playerid][Ammo7]);
       GetPlayerWeaponData(playerid,7,pInfo[playerid][Wep8],pInfo[playerid][Ammo8]);
       dini_IntSet(file,"Weapon 1",pInfo[playerid][Wep1]);
       dini_IntSet(file,"Ammo 1",pInfo[playerid][Ammo1]);
       dini_IntSet(file,"Weapon 2",pInfo[playerid][Wep2]);
       dini_IntSet(file,"Ammo 2",pInfo[playerid][Ammo2]);
       dini_IntSet(file,"Weapon 3",pInfo[playerid][Wep3]);
       dini_IntSet(file,"Ammo 3",pInfo[playerid][Ammo3]);
       dini_IntSet(file,"Weapon 4",pInfo[playerid][Wep4]);
       dini_IntSet(file,"Ammo 4",pInfo[playerid][Ammo4]);
       dini_IntSet(file,"Weapon 5",pInfo[playerid][Wep5]);
       dini_IntSet(file,"Ammo 5",pInfo[playerid][Ammo5]);
       dini_IntSet(file,"Weapon 6",pInfo[playerid][Wep6]);
       dini_IntSet(file,"Ammo 6",pInfo[playerid][Ammo6]);
       dini_IntSet(file,"Weapon 7",pInfo[playerid][Wep7]);
       dini_IntSet(file,"Ammo 7",pInfo[playerid][Ammo7]);
       dini_IntSet(file,"Weapon 8",pInfo[playerid][Wep8]);
       dini_IntSet(file,"Ammo 8",pInfo[playerid][Ammo8]);
       dini_FloatSet(file,"Health",Health);
       dini_FloatSet(file,"Armour",Armour);
       }
       return 1;
}
forward CheckThings(playerid);
public CheckThings(playerid)
{
       new string[128];
       format(string,sizeof(string),"%d Minutes",TimE[playerid]);
   new Float:Health,Float:Armour; GetPlayerHealth(playerid,Health); GetPlayerArmour(playerid,Armour);
       KillTimer(timeupdate);
       if(pInfo[playerid][Registered] == 1 && pInfo[playerid][LoggedIn] == 1)
       {
   new file[100],Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
       format(file,sizeof(file),PlayerFile,Name);
       new pName[24]; GetPlayerName(playerid,pName,24); new IP[16]; GetPlayerIp(playerid,IP,16);
       dini_Set(file, "Name", pName);
       dini_Set(file, "Ip Adress", IP);
       dini_IntSet(file,"Money",GetPlayerMoney(playerid));
       dini_IntSet(file,"Score",GetPlayerScore(playerid));
       dini_IntSet(file,"Kills",pInfo[playerid][Kills]);
       dini_IntSet(file,"Deaths",pInfo[playerid][Deaths]);
       dini_IntSet(file,"Skin",GetPlayerSkin(playerid));
       dini_IntSet(file,"Wanted Level",GetPlayerWantedLevel(playerid));
       dini_Set(file,"Time On Server",string);
       dini_IntSet(file,"Interior",GetPlayerInterior(playerid));
       dini_IntSet(file,"Virtual World",GetPlayerVirtualWorld(playerid));
       dini_IntSet(file,"Drunk Level",GetPlayerDrunkLevel(playerid));
       dini_IntSet(file,"Fighting Style",GetPlayerFightingStyle(playerid));
       dini_IntSet(file,"Team",GetPlayerTeam(playerid));
       GetPlayerWeaponData(playerid,0,pInfo[playerid][Wep1],pInfo[playerid][Ammo1]);
       GetPlayerWeaponData(playerid,1,pInfo[playerid][Wep2],pInfo[playerid][Ammo2]);
       GetPlayerWeaponData(playerid,2,pInfo[playerid][Wep3],pInfo[playerid][Ammo3]);
       GetPlayerWeaponData(playerid,3,pInfo[playerid][Wep4],pInfo[playerid][Ammo4]);
       GetPlayerWeaponData(playerid,4,pInfo[playerid][Wep5],pInfo[playerid][Ammo5]);
       GetPlayerWeaponData(playerid,5,pInfo[playerid][Wep6],pInfo[playerid][Ammo6]);
       GetPlayerWeaponData(playerid,6,pInfo[playerid][Wep7],pInfo[playerid][Ammo7]);
       GetPlayerWeaponData(playerid,7,pInfo[playerid][Wep8],pInfo[playerid][Ammo8]);
       dini_IntSet(file,"Weapon 1",pInfo[playerid][Wep1]);
       dini_IntSet(file,"Ammo 1",pInfo[playerid][Ammo1]);
       dini_IntSet(file,"Weapon 2",pInfo[playerid][Wep2]);
       dini_IntSet(file,"Ammo 2",pInfo[playerid][Ammo2]);
       dini_IntSet(file,"Weapon 3",pInfo[playerid][Wep3]);
       dini_IntSet(file,"Ammo 3",pInfo[playerid][Ammo3]);
       dini_IntSet(file,"Weapon 4",pInfo[playerid][Wep4]);
       dini_IntSet(file,"Ammo 4",pInfo[playerid][Ammo4]);
       dini_IntSet(file,"Weapon 5",pInfo[playerid][Wep5]);
       dini_IntSet(file,"Ammo 5",pInfo[playerid][Ammo5]);
       dini_IntSet(file,"Weapon 6",pInfo[playerid][Wep6]);
       dini_IntSet(file,"Ammo 6",pInfo[playerid][Ammo6]);
       dini_IntSet(file,"Weapon 7",pInfo[playerid][Wep7]);
       dini_IntSet(file,"Ammo 7",pInfo[playerid][Ammo7]);
       dini_IntSet(file,"Weapon 8",pInfo[playerid][Wep8]);
       dini_IntSet(file,"Ammo 8",pInfo[playerid][Ammo8]);
       dini_FloatSet(file,"Health",Health);
       dini_FloatSet(file,"Armour",Armour);
       }
       return 1;
}
Poslednja Izmena: Jun 16, 2011, 22:11:00 POSLE PODNE od [LYG] $--L84S--$
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%


if (strcmp(cmd, "/logout", true) ==0 ) // probaj compile posto sam ovo ja sad pisao.. nisam bas siguran da nema neki warning nisam testo :D Lane
{
        if(IsPlayerConnected(playerid))
    {
OnPlayerUpdateEx(playerid);
gPlayerLogged[playerid] = 0;
SendClientMessage(playerid, COLOR_ORANGE, "** Sad ste sigurni pri odlasku.");
format(string, sizeof(string), "[ADMIN]: %s se izlogovao.", sendername);
ABroadCast(COLOR_LIGHTRED, string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Logged Out",d,m,y,h,mi,s,sendername);
LoginLog(string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Nisi u mogucnosti koristiti ovu komandu !");

}
return 1;
}

Citatif (strcmp(cmd, "/logout", true) ==0 ) // probaj compile posto sam ovo ja sad pisao.. nisam bas siguran da nema neki warning nisam testo Sirast" border="0 Lane   
   { 
        if(IsPlayerConnected(playerid)) 
       { 
            OnPlayerUpdateEx(playerid); 
            gPlayerLogged[playerid] = 0; 
            SendClientMessage(playerid, COLOR_ORANGE, "** Sad ste sigurni pri odlasku."); 
            format(string, sizeof(string), "[ADMIN]: %s se izlogovao.", sendername); 
            ABroadCast(COLOR_LIGHTRED, string, 5); 
            new y, m, d; 
            new h,mi,s; 
            getdate(y,m,d); 
            gettime(h,mi,s); 
            format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Logged Out",d,m,y,h,mi,s,sendername); 
            LoginLog(string); 
         } 
         else 
         { 
            SendClientMessage(playerid, COLOR_GRAD1, "   Nisi u mogucnosti koristiti ovu komandu !"); 
           
      } 
      return 1; 
   }


Hehehehhe ma nesta mi nece ima neki error da li bi mi ti mogao to ubaciti u to: http://pastebin.com/CndjkbZp
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%