Skripta koju koristim: Moj GMOD od 0
Detaljan opis problema: ZnaÄi kad se ja registriram i postavim si novac, level, posao, itd, te uradim novi acc pod novim imenom ostanu mi svi podaci sa prvog acca odnosno posao, lvl, admin, novac... Sada mi nije jasno do Äega je to, ali reg/log sistem je viÅ¡e manje "standardni".
Dio skripte: Ako je što potrebno stavit ću.
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
daj log
Jesi stavio da igracu kad se registruje stavi sve na 0?
Citat: 032.Marcus poslato Januar 22, 2014, 17:42:20 POSLE PODNE
Jesi stavio da igracu kad se registruje stavi sve na 0?
nesto mora i da bude na -1
Pa dobro, uglavnom da mu resetuje sve. Daj kod ?
if(dialogid == DIALOG_REGISTER)
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "KORISNICKI RACUN - Registracija.",""ZUTA"|--------------------------- Balkan Vision v0.1 ---------------------------|\n\n"BELA"Upisali ste pogresnu lozinku.\n"BELA"Upisite lozinku da se registrirate!\n\n"ZUTA"|---------------------------------------------------------------------------|","Registracija","Izlaz");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File,"Password", inputtext);
INI_WriteInt(File,"Drzava", PlayerInfo[playerid][Drzava]);
INI_WriteInt(File,"Spol", PlayerInfo[playerid][Spol]);
INI_WriteInt(File,"Admin", PlayerInfo[playerid][Admin]);
INI_WriteInt(File,"Leader", PlayerInfo[playerid][Leader]);
INI_WriteInt(File,"Member", PlayerInfo[playerid][Member]);
INI_WriteInt(File,"Rank", PlayerInfo[playerid][Rank]);
INI_WriteInt(File,"Char", PlayerInfo[playerid][Char]);
INI_WriteInt(File,"Money", PlayerInfo[playerid][Money]);
INI_WriteInt(File,"Bank", PlayerInfo[playerid][Bank]);
INI_WriteInt(File,"Level", PlayerInfo[playerid][Level]);
INI_WriteInt(File,"Respect", PlayerInfo[playerid][Respect]);
INI_WriteInt(File,"PayDayMin", PlayerInfo[playerid][PayDayMin]);
INI_WriteInt(File,"Ubistva", PlayerInfo[playerid][Kills]);
INI_WriteInt(File,"Smrti", PlayerInfo[playerid][Deaths]);
INI_WriteInt(File,"Spawn", PlayerInfo[playerid][Spawn]);
INI_WriteInt(File,"WantedLevel",PlayerInfo[playerid][WantedLevel]);
INI_WriteInt(File, "Ugovor", PlayerInfo[playerid][Ugovor]);
INI_WriteInt(File, "Dostave", PlayerInfo[playerid][Dostave]);
INI_WriteInt(File, "Glad", PlayerInfo[playerid][Glad]);
INI_WriteInt(File, "RoadBlock", PlayerInfo[playerid][RoadBlock]);
INI_WriteInt(File, "Job", PlayerInfo[playerid][Job]);
INI_WriteInt(File, "JobTime", PlayerInfo[playerid][JobTime]);
INI_WriteInt(File, "ZastSkill", PlayerInfo[playerid][ZastSkill]);
INI_WriteInt(File, "MehSkill", PlayerInfo[playerid][MehSkill]);
INI_WriteInt(File, "BusSkill", PlayerInfo[playerid][BusSkill]);
INI_WriteInt(File, "BolSkill", PlayerInfo[playerid][BolSkill]);
INI_WriteInt(File, "GraSkill", PlayerInfo[playerid][GraSkill]);
INI_WriteInt(File, "Zatvoren", PlayerInfo[playerid][Zatvoren]);
INI_WriteInt(File, "ZatvorenVrijeme", PlayerInfo[playerid][ZatvorenVrijeme]);
INI_WriteInt(File, "ZatvorenSekunde", PlayerInfo[playerid][ZatvorenSekunde]);
INI_WriteInt(File, "VehID1", PlayerInfo[playerid][VehID1]);
INI_WriteInt(File, "VehID2", PlayerInfo[playerid][VehID2]);
INI_WriteInt(File, "VehID3", PlayerInfo[playerid][VehID3]);
INI_WriteInt(File, "Bon", PlayerInfo[playerid][Bon]);
INI_WriteInt(File, "Logsat", PlayerInfo[playerid][Logsat]);
INI_WriteInt(File, "Logdan", PlayerInfo[playerid][Logdan]);
INI_WriteInt(File, "Logmes", PlayerInfo[playerid][Logmes]);
INI_WriteInt(File, "Logmin", PlayerInfo[playerid][Logmin]);
INI_WriteInt(File, "Logsec", PlayerInfo[playerid][Logsec]);
INI_WriteInt(File, "Loggod", PlayerInfo[playerid][Loggod]);
INI_WriteInt(File, "Jail", PlayerInfo[playerid][Jail]);
INI_WriteInt(File, "JailTime", PlayerInfo[playerid][JailTime]);
INI_WriteInt(File, "JailSec", PlayerInfo[playerid][JailSec]);
INI_WriteInt(File, "Kuca", PlayerInfo[playerid][Kuca]);
INI_WriteInt(File, "Biznis", PlayerInfo[playerid][Biznis]);
INI_WriteInt(File, "Rent", PlayerInfo[playerid][Rent]);
INI_WriteInt(File, "Materijali", PlayerInfo[playerid][Materijali]);
INI_WriteInt(File, "Droga", PlayerInfo[playerid][Droga]);
INI_WriteInt(File, "Vozilo", PlayerInfo[playerid][Vozilo]);
INI_WriteInt(File, "Brod", PlayerInfo[playerid][Brod]);
INI_WriteInt(File, "Avion", PlayerInfo[playerid][Avion]);
INI_Close(File);
PlayerInfo[playerid][Spawn] = 0;
PlayerInfo[playerid][Money] = 1000;
SetPlayerScore(playerid, PlayerInfo[playerid][Level] = 1);
PlayerInfo[playerid][Bank] = 5000;
PlayerInfo[playerid][Glad] = 10;
PlayerInfo[playerid][Bon] = 100;
//##############################################################
SPD(playerid, SPOL_D, DIALOG_STYLE_LIST, "ODABIR SPOLA","Musko\nZensko", "Dalje", "Kick");
}
}
Aha, znaÄi treba staviti sve na 0 sta bi trebalo biti na 0?
Sad nisam siguran da li ima neke veze za Lidera, Admina itd da li je 0 ili -1, kod mene je sve nula a pAdmin mi je -1. Ali ja jos uvek nemam nista, samo Pol, Godine, Drzavu, Admin, Novac i jos par nekih stvari...
pod ovo
public OnPlayerConnect(playerid)
{
stavis ovo za sve komande ali moras postaviti sve Playerinfoe ne samo taj
PlayerInfo[playerid][Materijali] = -1;
to ce ti resetrirati ali bas za sve
}
Citat: Maillxx poslato Januar 22, 2014, 21:13:43 POSLE PODNE
pod ovo
public OnPlayerConnect(playerid)
{
stavis ovo za sve komande ali moras postaviti sve Playerinfoe ne samo taj
PlayerInfo[playerid][Materijali] = -1;
to ce ti resetrirati ali bas za sve
}
Pa to ce ti postavljati svaki put kad god udes ig Meterijale na -1. No vise nije bitno riješio sam.