[Pomoc] Error

Započeo 007Bondâ„¢, Novembar 06, 2013, 22:27:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: 0
Detaljan opis problema: Ubacivo sam pay sistem pojavi mi se error na ovu liniju :
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registracija","REGISTER TEKS-NEBITAN JE","Registriraj","Odustani");

Tu mi se pojavi da nesto nije u redu zagrada, il nesto sl. ja sam probo sve ne znam xD ? Znal tko gdje sam netocno stavio?

Dio skripte:
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(347) : error 001: expected token: ";", but found ")"
// linija
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Citat: David (Sabljak) A.k.A SABO(T) poslato Novembar 06, 2013, 22:33:25 POSLE PODNE
par linija iznad njega i ispod?

NE DPaj!
Evo ti cjeli GM, tek sam poceo skriptat :P
#include <a_samp>
#include <dini>
#include <dudb>

#pragma unused ret_memcpy
////////////////////////////////////////////////////[ defineovi i newovi ]//////////////////////////////////////////////////////////////////////////////////////////////
new gPlayerLogged[MAX_PLAYERS];
#define SERVER_USER_FILE "igraci/%s.ini"
#define MAX_TEXT 10 // Govori broj textova, koliko ih ima
#define UPDATE_TEXT 10 // Govori svakih koliko se promijeni text u sekundama
#define SHOW_TEXT_ON_SPAWN // Ako želite da se igraču prikaže text kada se spawna
#define COLOR_YELLOW	0xFFFF00FF
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define INI_Open
#define UserPath
#define INI_SetTag
#define INI_WriteInt
#define DIALOG_REGISTER
#define File
#define iznosplace
/////////////////////////////////////////////[ enum ] ////////////////////////////////////////////////////////////////////////////////////////////////
enum pInfo
{
    pAdminLevel,
    pCash,
    pScore,
    pLevel,
    pRespekti,
    pPaytime
}
new PlayerInfo[MAX_PLAYERS][pInfo];
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public OnGameModeInit()
{
	print("\n--------------------------------------");
	print(" MIAMI GAMING BY ISMET ALIC");
	print("--------------------------------------\n");
	// Don't use these lines if it's a filterscript
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	SetGameModeText("MGRP V 0.1");
	UsePlayerPedAnims(); // Eh ovo ti je CJ trcanje, ili sto ti kazes kao na "CH"
	DisableInteriorEnterExits(); // ovo jednostavno ukida markere za ulaze u bizove kucu iz SP-a
	SetTimer("minute",60000,true);//minute=ime timera,*60 koliko sekundi treba za 1 payday poen,mozete umjesto 1000*60 staviti 60000 isto je
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{
    gPlayerLogged[playerid] = 0;
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if (!dini_Exists(file))
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Niste registrirani", "[VilkoSys]Dobrodosli, niste registrirani. Molim registrirajte se za daljnju igru", "Register", "Leave");
    }
    if(fexist(file))
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Vi ste registrirani", "[VilkoSys]Dobrodosli, vi ste registrirani. Logirajte se", "Login", "Leave");
    }
}
public OnPlayerDisconnect(playerid, reason)
{
//******************************************************************************
	new INI:File INI_Open(UserPath(playerid)); //Zapisuje podatke u igracevu fajl datoteku
	INI_SetTag(File"data"), //Takoder zapisuje podatke u igracevu fajl datoteku
	INI_WriteInt(File"Paytime",PlayerInfo[playerid][pPaytime]);//Zapisuje koliko igrac ima Paytime-a ,zapisuje ga u igracevu fajl datoteku
	INI_WriteInt(File"Respekti",PlayerInfo[playerid][pRespekti]);//Zapisuje koliko igrac ima Respekta,zapisuje ga u igracevu fajl datoteku
	INI_WriteInt(File"Level",GetPlayerScore(playerid));//Zapisuje igracev Level ,zapisuje ga u igracevu fajl datoteku
//******************************************************************************
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if(gPlayerLogged[playerid] == 1)
    {
        dini_IntSet(file, "Level", PlayerInfo[playerid][pScore]);
        dini_IntSet(file, "Novac", PlayerInfo[playerid][pCash]);
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
    }
    gPlayerLogged[playerid] = 0;
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
	return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
	return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}

public OnPlayerUpdate(playerid)
{
	return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
	return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
forward minute();
public minute()
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	    new string[128];
		if(!IsPlayerConnected(i))continue; //Ako je igrac konektiran na server igracu se broje payday poeni,ako nije,ne broje se
		PlayerInfo[i][pPaytime] ++; //dodaje mu se 1 payday poen
		if(PlayerInfo[i][pPaytime]==30) //Broj payday poena koji igrac mora zadovoljavati da bi dobio placu,mozete promjeniti
		{
	 		PlayerInfo[i][pPaytime] = 0;//PayTime mu se vraca na 0
	 		PlayerInfo[i][pRespekti] ++; //kada igrac primi placu dobit ce 1 respekt
   			new osnova = 0, placa = 0; osnova = 100 + random(99);placa = osnova*PlayerInfo[i][pLevel];//Osnovica place je 100+ random od 99,mozete promjeniti osnovicu po zelji
       	 	format(string,sizeof(string),"Placa,radili ste 30 minuta i zaradili placu od  $%i", placa);
        	SendClientMessage(i, COLOR_LIGHTBLUE, string);//Å¡alje igraču poruku u COLOR_LIGHTBLUE boji
			GivePlayerMoney(i,placa); //Daje igracu placu
		}
		if(PlayerInfo[i][pLevel] == 1) //Ako je igrac Level 1
		{
		    if(PlayerInfo[i][pPaytime]==30) //Broj payday poena koji igrac mora zadovoljavati da bi dobio placu,mozete promjeniti
			{
		 		PlayerInfo[i][pPaytime] = 0; //Postavlja mu ponovo payday poene na 0 nakon sto primi platu
	   			new osnova = 0, placa = 0; osnova = 100 + random(99); placa = osnova*PlayerInfo[i][pLevel]; //Osnovica place je 100 a random je 99,mozete promjeniti osnovicu po zelji
	       	 	format(string,sizeof(string),"Placa,radili ste 30 minuta i zaradili placu od $%i",placa);
	        	SendClientMessage(i, COLOR_LIGHTBLUE, string);//Å¡alje igraču poruku u COLOR_LIGHTBLUE boji,mozete promjeniti
				GivePlayerMoney(i,placa); //Daje igracu 300$,mozete promjeniti
			}
			if(PlayerInfo[i][pRespekti] >= 2)//ako igrač ima više od 2 respekta
			{
			    PlayerInfo[i][pLevel] ++;//dodaje igraču level +
			    PlayerInfo[i][pRespekti] = 0;//vraća igraču respekte na 0
			    SetPlayerScore(i, PlayerInfo[i][pLevel]);//postavlja igraču level
	            format(string,sizeof(string),"Cestitamo, presli ste na level %i!", PlayerInfo[i][pLevel]); //poruka koju mu ispisuje mozete promjeniti,tako i dalje,dalje necu objasnjavati dole
	            SendClientMessage(i, COLOR_LIGHTBLUE, string);//Å¡alje igraču poruku u COLOR_LIGHTBLUE boji,mozete promjeniti
	            return 1;
			 }
	   	}
     if(PlayerInfo[i][pLevel] == 2) //Ako je igrac Level 2
		{
		    if(PlayerInfo[i][pPaytime]==30) //Broj payday poena koji igrac mora zadovoljavati da bi dobio placu,mozete promjeniti po zelji
			{
		 		PlayerInfo[i][pPaytime] = 0;
	   			new osnova = 0, placa = 0; osnova = 200 + random(99); placa = osnova*PlayerInfo[i][pLevel];//placa,200 je osnova + 99 randoma,mozete promjeniti,isto tako i dole mozete
	       	 	format(string,sizeof(string),"Placa radili ste 30 minuta i zaradili  $%i" iznosplace);
	        	SendClientMessage(i, COLOR_LIGHTBLUE, string);//Å¡alje igraču poruku,u COLOR_LIGHTBLUE boji,mozete promjeniti
				GivePlayerMoney(i,placa); //Daje igracu 300$,mozete promjeniti
			}
			if(PlayerInfo[i][pRespekti] >= 4) //ako igrač ima više respekta od 4
			{
			    PlayerInfo[i][pLevel] ++; //Dodaje igracu 1 Level
			    PlayerInfo[i][pRespekti] = 0;//vraća igraču respekte na 0
			    SetPlayerScore(i, PlayerInfo[i][pLevel]);//postavlja igraču level
	            format(string,sizeof(string),"Cestitamo, presli ste na %i Level!", PlayerInfo[i][pLevel]);
	            SendClientMessage(i, COLOR_LIGHTBLUE, string);//Å¡alje igraču poruku,u COLOR_LIGHTBLUE boji,mozete promjeniti
	            return 1;
			 }
	   	}
	   	if(PlayerInfo[i][pLevel] == 3) //Ako je igrac Level 3
		{
		    if(PlayerInfo[i][pPaytime]==30) //Broj payday poena koji igrac mora zadovoljavati da bi dobio placu,mozete promjeniti
			{
		 		PlayerInfo[i][pPaytime] = 0;
	   			new osnova = 0, placa = 0; osnova = 300 + random(99); placa = osnova*PlayerInfo[i][pLevel];//ovo je za pare, to valjda znate neću objaÅ¡njavati
	       	 	format(string,sizeof(string),"Placa,radili ste 30 minuta i dobili placu u iznostu od  $%i", placa);
	        	SendClientMessage(i, COLOR_LIGHTBLUE, string);//Å¡alje igraču poruku
				GivePlayerMoney(i,placa); //Daje igracu placu
			}
			if(PlayerInfo[i][pRespekti] >= 6)//ako igrač ima više respekta od 6-m,ozete promjeniti po zelji
			{
			    PlayerInfo[i][pLevel] ++; //Daje igracu level +
			    PlayerInfo[i][pRespekti] = 0;//vraća igraču respekte na 0
			    SetPlayerScore(i, PlayerInfo[i][pLevel]); //postavlja igraču level
	            format(string,sizeof(string),"Cesitamo, presli ste na %i Level!", PlayerInfo[i][pLevel]);
	            SendClientMessage(i, COLOR_LIGHTBLUE, string); //Å¡alje igraču poruku,u COLOR_LIGHTBLUE boji,mozete promjeniti
	            return 1;
	   	}
	}
        return 1;
	}
	return 1;
}
///////////////////////////////////////////// dialozi //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
INI_WriteInt(File,"Paytime",0);
switch(dialogid)
{
	case DIALOG_REGISTER:
	{
	if(!response) return Kick(playerid);
	if(response)
	{
	if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registracija","REGISTER TEKS-NEBITAN JE","Registriraj","Odustani"); //Tekst koji se prikazuje prilikom registracije u dialog-nebitan je u ovom tutorialu,naveo sam ga da pokazem kako je to kod mene
	new INI:File = INI_Open(UserPath(playerid)); //Otvara/zapisuje u igracevu fajl datoteku(ni sam neznam xd)
	INI_SetTag(File,"data"); //Zapisuje u igracevu fajl datoteku
	INI_WriteInt(File,"Paytime",0);//Zapisuje u igracevu fajl datoteku,te mu postavlja payday poene na 0 kad se registrira
	INI_WriteInt(File,"Respekti",0);//Zapisuje u igracevu fajl datoteku,te mu postavlja respekte na 0 kad se registrira
	INI_WriteInt(File,"Level",1);//Zapisuje u igracevu fajl datoteku,te mu postavlja Level 1 kad se registrira
	INI_Close(File); //Zatvara fajl
	}
//----------------------------------------------------------------------------------------------------------------------------------------------
if (dialogid == 1)
    {
        new name[MAX_PLAYER_NAME], file[256], string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), SERVER_USER_FILE, name);
        if(!response) return Kick(playerid);
        if (!strlen(inputtext)) return
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Niste registrirani", "Dobrodosli, niste registrirani. Molim registrirajte se za daljnju igru", "Register", "Leave");
        dini_Create(file);
        dini_IntSet(file, "Lozinka", udb_hash(inputtext));
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
        dini_IntSet(file, "Novci",PlayerInfo[playerid][pCash] = 500);
        dini_IntSet(file, "Level",PlayerInfo[playerid][pScore] = 0);
        format(string, 128, "[VilkoSys]: Registrirali ste se %s s sifrom %s, automatski ste logirani.", name, inputtext);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        gPlayerLogged[playerid] = 1;
    }
if (dialogid == 2)
    {
        new name[MAX_PLAYER_NAME], file[256];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), SERVER_USER_FILE, name);
        if(!response) return Kick(playerid);
        if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Vi ste registrirani", "Dobrodosli, vi ste registrirani. Logirajte se", "Login", "Leave");
        new tmp;
        tmp = dini_Int(file, "Lozinka");
        if(udb_hash(inputtext) != tmp) {
        SendClientMessage(playerid, COLOR_RED, "[VilkoSys]Pogresna lozinka.");
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Vi ste registrirani", "Dobrodosli, vi ste registrirani. Logirajte se", "Login", "Leave");
        }
        else
        {
        gPlayerLogged[playerid] = 1;
        PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
        SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
        GivePlayerMoney(playerid, dini_Int(file, "Novci")-GetPlayerMoney(playerid));
        SendClientMessage(playerid,COLOR_RED, "[VilkoSys]: Logirani ste!!");
        }
    }
return 1;
}
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
	INI_Int("Paytime",PlayerInfo[playerid][pPaytime]); //Zapisuje paytime-paydaypoene
	INI_Int("Respekti",PlayerInfo[playerid][pRespekti]); //Zapisuje respekte
	INI_Int("Level",PlayerInfo[playerid][pLevel]);//Zapisuje respekte
	return 1;
}
//////////////////////////// komande komande komande komande ///////////////////////////////////////////////////////////////////////////////////////////
CMD:stats(playerid,params[])
{
	new string[128];
 	format(string,sizeof(string),"[PayDay: %i] [Respekti: %i] [Level: %i]",PlayerInfo[playerid][pPaytime],PlayerInfo[playerid][pRespekti],GetPlayerScore(playerid)); //Iscitava iz igracevog statsa paydaypoene,respekte i level
 	SendClientMessage(playerid,COLOR_LIGHTBLUE,string); //Ispisuje poruku u COLOR_LIGHTBLUE boji
 	return 1;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

i evo svi errori koji mi se pojavljuju...
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(79) : error 001: expected token: "-identifier-", but found "("
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(80) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(80 -- 81) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(82) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(294) : warning 217: loose indentation
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(314) : warning 217: loose indentation
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(341) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(341) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(341) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(344) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : error 001: expected token: ";", but found ")"
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(349) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.

Lose si kopirao tutorijale

public OnPlayerDisconnect(playerid, reason)
{
//******************************************************************************
	new INI:File = INI_Open(UserPath(playerid)); //Zapisuje podatke u igracevu fajl datoteku
	INI_SetTag(File,"data"); //Takoder zapisuje podatke u igracevu fajl datoteku
	INI_WriteInt(File"Paytime",PlayerInfo[playerid][pPaytime]);//Zapisuje koliko igrac ima Paytime-a ,zapisuje ga u igracevu fajl datoteku
	INI_WriteInt(File"Respekti",PlayerInfo[playerid][pRespekti]);//Zapisuje koliko igrac ima Respekta,zapisuje ga u igracevu fajl datoteku
	INI_WriteInt(File"Level",GetPlayerScore(playerid));//Zapisuje igracev Level ,zapisuje ga u igracevu fajl datoteku
//******************************************************************************
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if(gPlayerLogged[playerid] == 1)
    {
        dini_IntSet(file, "Level", PlayerInfo[playerid][pScore]);
        dini_IntSet(file, "Novac", PlayerInfo[playerid][pCash]);
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
    }
    gPlayerLogged[playerid] = 0;
	return 1;
}


Korisis y_ini sistem pobrkan sa Dini-jem?

Odluci se za jedan sistem koji ces koristiti.

I pliz skloni taj potpis na forumu...

Aj razumem da si radio sa Y_ini-jem igraca, a event sa Dini-jem, ali ti igraca radis sa jednim i drugim....
Poslednja Izmena: Novembar 06, 2013, 23:45:35 POSLE PODNE od [X-3] Ralph

[quote author=[X-3] Ralph link=topic=81229.msg556573#msg556573 date=1383777845]
Lose si kopirao tutorijale

public OnPlayerDisconnect(playerid, reason)
{
//******************************************************************************
	new INI:File = INI_Open(UserPath(playerid)); //Zapisuje podatke u igracevu fajl datoteku
	INI_SetTag(File,"data"); //Takoder zapisuje podatke u igracevu fajl datoteku
	INI_WriteInt(File"Paytime",PlayerInfo[playerid][pPaytime]);//Zapisuje koliko igrac ima Paytime-a ,zapisuje ga u igracevu fajl datoteku
	INI_WriteInt(File"Respekti",PlayerInfo[playerid][pRespekti]);//Zapisuje koliko igrac ima Respekta,zapisuje ga u igracevu fajl datoteku
	INI_WriteInt(File"Level",GetPlayerScore(playerid));//Zapisuje igracev Level ,zapisuje ga u igracevu fajl datoteku
//******************************************************************************
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if(gPlayerLogged[playerid] == 1)
    {
        dini_IntSet(file, "Level", PlayerInfo[playerid][pScore]);
        dini_IntSet(file, "Novac", PlayerInfo[playerid][pCash]);
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
    }
    gPlayerLogged[playerid] = 0;
	return 1;
}


Korisis y_ini sistem pobrkan sa Dini-jem?

Odluci se za jedan sistem koji ces koristiti.

I pliz skloni taj potpis na forumu...

Aj razumem da si radio sa Y_ini-jem igraca, a event sa Dini-jem, ali ti igraca radis sa jednim i drugim....
[/quote]
Ubacio sam to sve, sada imam ove errore :O
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(79) : error 001: expected token: "-identifier-", but found "="
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(80) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(80) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(80) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(81) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(82) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(293) : warning 217: loose indentation
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(313) : warning 217: loose indentation
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(340) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(340) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(340) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(343) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : warning 215: expression has no effect
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : error 001: expected token: ";", but found ")"
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : error 029: invalid expression, assumed zero
C:\Users\Ismet Alic\Desktop\miamigaming\gamemodes\mg.pwn(348) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

Da li bi mi ti mogao namjestiti to eto ti kodovi gore cijela skripta :)
Molim te...
Poslednja Izmena: Novembar 06, 2013, 23:49:30 POSLE PODNE od 007Bondâ„¢

new INI:File = INI_Open(UserPath(playerid)); //Zapisuje podatke u igracevu fajl datoteku
	INI_SetTag(File,"data"); //Takoder zapisuje podatke u igracevu fajl datoteku
	INI_WriteInt(File"Paytime",PlayerInfo[playerid][pPaytime]);//Zapisuje koliko igrac ima Paytime-a ,zapisuje ga u igracevu fajl datoteku
	INI_WriteInt(File"Respekti",PlayerInfo[playerid][pRespekti]);//Zapisuje koliko igrac ima Respekta,zapisuje ga u igracevu fajl datoteku
	INI_WriteInt(File"Level",GetPlayerScore(playerid));//Zapisuje igracev Level ,zapisuje ga u igracevu fajl datoteku


To ti uopste i ne treba, jer ti je registracija radjena sa dini-jem....

Skloni sve stvari  vezane za y_ini iz skripte...jer ti ne sluze nicemu.

Izbrisao sam, citav pay sistem i to je to :(
Al ok, nap cu nesto svoje ... ( probati, xD )
Mozesl lock