[pomoc]oko organizacija

Započeo patriklaic, Mart 18, 2013, 16:47:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Jedna skinuta sa neta (3.5k linija ima)
Komentar:pomognite mi ako znate bio bih zahvalan
Detaljan opis problema:napravio sam sve ali kada napravim javljaju mi se erori nevezani za to
Dio skripte:
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(443) : error 004: function "ClearChatbox" is not implemented
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(457) : error 004: function "ClearChatbox" is not implemented
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(470) : error 004: function "ClearChatbox" is not implemented
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(482) : error 004: function "ClearChatbox" is not implemented
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(494) : error 004: function "ClearChatbox" is not implemented
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(512) : error 004: function "ClearChatbox" is not implemented
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(520) : error 004: function "ClearChatbox" is not implemented
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(553) : warning 211: possibly unintended assignment
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(553) : error 001: expected token: "*then", but found ";"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(553) : error 036: empty statement
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(560) : error 079: inconsistent return types (array & non-array)
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(563) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(563) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(563) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(563) : fatal error 107: too many error messages on one line

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


14 Errors.



o cemu se radi 457 red

public PrikazivanjeTutoriala1(playerid)
{
	SetPlayerCameraPos(playerid, 1481.6860,-2155.4636,20.3747);
	SetPlayerCameraLookAt(playerid, 1485.6860,-2155.4636,20.3747);
	SetPlayerInterior(playerid, 0);
	SetPlayerVirtualWorld(playerid, 0);
	SetPlayerPos(playerid, 1482.6860,-2155.4636,20.3747);
	ClearChatbox(playerid, 20);    //----------------------------457 red
	SCM(playerid, BELA, "{FFF1AF}Ovo je RolePlay server. Sta to znaci ?");
	SCM(playerid, BELA, " ");
	SCM(playerid, BELA, "{FFF1AF}To znaci, da se nastoji da sva igra na serveru izgleda kao desavanje u stvarnom zivotu.");
	SCM(playerid, BELA, "{FFF1AF}Da, RolePlay je simulacija stvarnog zivota.");
	SCM(playerid, BELA, "{FFF1AF}Da bi se to nastojanje ispunilo na sto kvalitetniji nacin, postoje stvari koje je zabranjeno raditi.");
	SCM(playerid, BELA, "{FFF1AF}Svaka od tih stvari je pojam za sebe, mi cemo pojasniti nekoliko njih!");
	SetTimerEx("PrikazivanjeTutoriala2", 20000, 0, "i", playerid);
	return 1;
}


dio sa 470

public PrikazivanjeTutoriala2(playerid)
{
	ClearChatbox(playerid, 20);  /-----------------------------470 red
	SCM(playerid, BELA, "{1BE0E0}MetaGaming - MG");
	SCM(playerid, BELA, " ");
	SCM(playerid, BELA, "{FFF1AF}Mesanje IC i OOC radnji,konkretno,pisanje u IC chat stvari koje su vezane za igru (Dobar dan dolazim iz LS.,Stanite govori vam LSPD...).");
 	SCM(playerid, BELA, "{FFF1AF}Isto tako pisanje u OOC chat stvari koje su vezane za stvaran zivot (Idem jest stara me zove,xD,hahahaha...).");
 	SCM(playerid, BELA, "{FFF1AF}Komanda za OOC chat je /b,dok za IC chat unosite text bez ikakve komande ( T ).");
 	SetTimerEx("PrikazivanjeTutoriala3", 20000, 0, "i", playerid);
	return 1;
}


dio 482

public PrikazivanjeTutoriala3(playerid)
{
	ClearChatbox(playerid, 20);  //------------------------- 482 red
	SCM(playerid, BELA, "{1BE0E0}PowerGaming - PG");
	SCM(playerid, BELA, " ");
	SCM(playerid, BELA, "{FFF1AF}Bilo koja stvar koja nije moguca u stvarnom zivotu,a uradi se u igri.");
 	SCM(playerid, BELA, "{FFF1AF}Recimo, skok sa zgrade i prezivljavanje istog, stajanje na autu u voznji, itd.");
 	SCM(playerid, BELA, "{FFF1AF}U PowerGaming takodje mozemo svrstati prisiljavanje drugog igraca da uradi nesto nemoguce u stvarnom zivotu.");
 	SetTimerEx("PrikazivanjeTutoriala4", 20000, 0, "i", playerid);
	return 1;
}


dio 494
public PrikazivanjeTutoriala4(playerid)
{
	ClearChatbox(playerid, 20);  //---------------- dio 494
	SCM(playerid, BELA, "{1BE0E0}DriveBy - DB");
	SCM(playerid, BELA, " ");
	SCM(playerid, BELA, "{FFF1AF}Pucanje na pesake sa mesta vozaca,u to mozemo ubrojati i gazenje pesaka autom, te ubijanje elisom helikoptera.");
	SCM(playerid, BELA, " ");
	SCM(playerid, BELA, "{1BE0E0}DeathMatch - DM");
	SCM(playerid, BELA, " ");
	SCM(playerid, BELA, "{FFF1AF}Neprestano ubijanje na serveru (kao i ubistvo bez RP razloga), kada je u pitanju RolePlay za to postoji OOC DM Freezona.");
	SCM(playerid, BELA, " ");
	SCM(playerid, BELA, "{1BE0E0}BunnyHop - BH");
	SCM(playerid, BELA, " ");
	SCM(playerid, BELA, "{FFF1AF}Skakanje tokom trcanja koje nas cini brzim od ostalih igraca, u to mozemo ubrojati i skok biciklom.");
 	SetTimerEx("PrikazivanjeTutoriala5", 20000, 0, "i", playerid);
	return 1;
}



dio 512

public PrikazivanjeTutoriala5(playerid)
{
	ClearChatbox(playerid, 20);  //-------------------- dio 512
	SCM(playerid, BELA, "{FFF1AF}To su bila neka od pravila, pricekajte par sekundi za prebacivanje na login pitanja.");
	SetTimerEx("PrikazivanjeTutoriala6", 10000, 0, "i", playerid);
	return 1;
}


dio 520

public PrikazivanjeTutoriala6(playerid)
{
	ClearChatbox(playerid, 20);  //---------------------- dio 520
    SPD(playerid, DIALOG_ROLEPLAY, DIALOG_STYLE_LIST, "Sta je to RolePlay?", "Skok biciklom\nSimulacija stvarnog zivota\nNeprestano ubijanje igraca\nIskoriscavanje bugova","Dalje", "Otkazi");
	return 1;
}


dio 553

public PostaviSpawn(playerid)
{
	if(PlayerInfo[playerid][pSpawn] == SPAWN_BAZA)
	{
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		SetCameraBehindPlayer(playerid);
		if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
	    {
	    	SetPlayerInterior(playerid, 0);
	     	SetPlayerVirtualWorld(playerid, 0);
	        SetPlayerPos(playerid, 1390.1453,-1628.5948,13.5469);
	        SetPlayerFacingAngle(playerid, 89.0739);
	        SetCameraBehindPlayer(playerid);
	    }
	    if(PlayerInfo[playerid][pSpawn] == SPAWN_PD)
	    {
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		SetCameraBehindPlayer(playerid);
		if(PlayerInfo[playerid][pClan] == 2 || PlayerInfo[playerid][pLider] == 2)
	    {
	    	SetPlayerInterior(playerid, 6);
	     	SetPlayerVirtualWorld(playerid, 0);
	        SetPlayerPos(playerid, 255.7822,65.6216,1003.6406);
	        SetPlayerFacingAngle(playerid, 89.0739);
	        SetCameraBehindPlayer(playerid);
	    }
	    else if PlayerInfo[playerid][pSpawn] = SPAWN_OBICAN;  //---------------------dio 553
	    {
              SetPlayerPos(playerid, 822.0222, -1363.1288, -0.5078);
              SetPlayerFacingAngle(playerid, 316.2195);
	      SetCameraBehindPlayer(playerid);
		}
	}
	return 1;
}


dio 560

public PostaviSpawn(playerid)
{
	if(PlayerInfo[playerid][pSpawn] == SPAWN_BAZA)
	{
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		SetCameraBehindPlayer(playerid);
		if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
	    {
	    	SetPlayerInterior(playerid, 0);
	     	SetPlayerVirtualWorld(playerid, 0);
	        SetPlayerPos(playerid, 1390.1453,-1628.5948,13.5469);
	        SetPlayerFacingAngle(playerid, 89.0739);
	        SetCameraBehindPlayer(playerid);
	    }
	    if(PlayerInfo[playerid][pSpawn] == SPAWN_PD)
	    {
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		SetCameraBehindPlayer(playerid);
		if(PlayerInfo[playerid][pClan] == 2 || PlayerInfo[playerid][pLider] == 2)
	    {
	    	SetPlayerInterior(playerid, 6);
	     	SetPlayerVirtualWorld(playerid, 0);
	        SetPlayerPos(playerid, 255.7822,65.6216,1003.6406);
	        SetPlayerFacingAngle(playerid, 89.0739);
	        SetCameraBehindPlayer(playerid);
	    }
	    else if PlayerInfo[playerid][pSpawn] = SPAWN_OBICAN;
	    {
         SetPlayerPos(playerid, 822.0222, -1363.1288, -0.5078);
         SetPlayerFacingAngle(playerid, 316.2195);
		 SetCameraBehindPlayer(playerid);
		}
	}
	return 1;          //// --------------------------ovo je 560
}


dio 563

stock SCMF(playerid,color,fstring[],{Float, _}:...) //ovo je 563
{
   new n=(numargs()-3)*4;
   if(n)
   {
      new message[128],arg_start,arg_end;
      #emit CONST.alt                fstring
      #emit LCTRL                    5
      #emit ADD
      #emit STOR.S.pri               arg_start
      #emit LOAD.S.alt               n
      #emit ADD
      #emit STOR.S.pri               arg_end
      do
      {
         #emit LOAD.I
         #emit PUSH.pri
         arg_end-=4;
         #emit LOAD.S.pri           arg_end
      }
      while(arg_end>arg_start);
      #emit PUSH.S                   fstring
      #emit PUSH.C                   255
      #emit PUSH.ADR                 message
      n+=4*3;
      #emit PUSH.S                   n
      #emit SYSREQ.C                 format
      n+=4;
      #emit LCTRL                    4
      #emit LOAD.S.alt               n
      #emit ADD
      #emit SCTRL                    4
      return SCM(playerid,color,message);
   }
   else return SCM(playerid,color,fstring);
}



Citat: David (Sabljak) A.k.A SABO(T) poslato Mart 18, 2013, 17:04:33 POSLE PODNE
Clear chat box, krivi si dao :)

nemam nista drugo imam samo public i forward ali stock nemam

Citat: David (Sabljak) A.k.A SABO(T) poslato Mart 18, 2013, 17:10:24 POSLE PODNE
Daj da ga vidim

public ClearChatbox(playerid, lines)
{
	if (IsPlayerConnected(playerid))
	{
		for(new i=0; i<lines; i++)
		{
			SCM(playerid,BELA, " ");
		}
	}
	return 1;
}



forward ClearChatbox(playerid, lines);

Citat: David (Sabljak) A.k.A SABO(T) poslato Mart 18, 2013, 17:22:26 POSLE PODNE
Kod: [Odaberi]
forward ClearChatbox();
public ClearChatbox()
{
      for(new i=0; i<20; i++)
      {
         SCM(i,BELA, " ");
      }
   return 1;
}

I dodas onda

ClearChatbox(); // za brisat chat u tutu

Mislim da bi tako trebalo radit ili ovako


stock ClearChatbox(playerid)
{
SCM(playerid,BELA, " ");
SCM(playerid,BELA, " ");
//dodas 20 puta

}
   return 1;
}


Na mobu sam mozda sam falio nes

HVALA! smanjio si mi puno erora sad ih imam 7 ako znas rjesit ovo

C:\Users\korisnik\Desktop\skripta\pawno\include\YSI\y_utils.inc(427) : error 079: inconsistent return types (array & non-array)
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(553) : warning 211: possibly unintended assignment
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(553) : error 001: expected token: "*then", but found ";"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(553) : error 036: empty statement
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(563) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(563) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(563) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(563) : fatal error 107: too many error messages on one line

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


7 Errors.


427 dio

public LoadUser_data(playerid,name[],value[])
{
	INI_String("Lozinka", PlayerInfo[playerid][pLozinka], 100);
	INI_String("Email", PlayerInfo[playerid][pEmail], 100);
	INI_Int("Novcanik",PlayerInfo[playerid][pNovcanik]);
	INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
	INI_Int("GameXpert",PlayerInfo[playerid][pGX]);
	INI_Int("Ubistva",PlayerInfo[playerid][pUbistva]);
	INI_Int("Smrti",PlayerInfo[playerid][pSmrti]);
	INI_Int("OnlineSati",PlayerInfo[playerid][pOnlineSati]);
	INI_Int("Level",PlayerInfo[playerid][pLevel]);
	INI_Int("Pol",PlayerInfo[playerid][pPol]);
	INI_Int("Poreklo",PlayerInfo[playerid][pPoreklo]);
	INI_Int("Registrovan",PlayerInfo[playerid][pRegistrovan]);
	INI_Int("Telefon",PlayerInfo[playerid][pTelefon]);
	INI_Int("GPS",PlayerInfo[playerid][pGPS]);
	INI_Int("DzeparosVreme",PlayerInfo[playerid][pDzeparosVreme]);
	INI_Int("Posao",PlayerInfo[playerid][pPosao]);
	INI_Int("Skin",PlayerInfo[playerid][pSkin]);
	INI_Int("OfflineBan",PlayerInfo[playerid][pOfflineBan]);
	INI_Int("Lider",PlayerInfo[playerid][pLider]);
	INI_Int("Clan",PlayerInfo[playerid][pClan]);          //----------------------------- 427
	INI_Int("Rank",PlayerInfo[playerid][pRank]);
	INI_Int("Spawn",PlayerInfo[playerid][pSpawn]);
	INI_Int("Oruzje1",PlayerInfo[playerid][pOruzje1]);
	INI_Int("Oruzje2",PlayerInfo[playerid][pOruzje2]);
	INI_Int("Oruzje3",PlayerInfo[playerid][pOruzje3]);
	INI_Int("Oruzje4",PlayerInfo[playerid][pOruzje4]);
	INI_Int("Municija1",PlayerInfo[playerid][pMunicija1]);
	INI_Int("Municija2",PlayerInfo[playerid][pMunicija2]);
	INI_Int("Municija3",PlayerInfo[playerid][pMunicija3]);
	INI_Int("Municija4",PlayerInfo[playerid][pMunicija4]);
	return 1;
}


553 dio

public PostaviSpawn(playerid)
{
	if(PlayerInfo[playerid][pSpawn] == SPAWN_BAZA)
	{
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		SetCameraBehindPlayer(playerid);
		if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
	    {
	    	SetPlayerInterior(playerid, 0);
	     	SetPlayerVirtualWorld(playerid, 0);
	        SetPlayerPos(playerid, 1390.1453,-1628.5948,13.5469);
	        SetPlayerFacingAngle(playerid, 89.0739);
	        SetCameraBehindPlayer(playerid);
	    }
	    if(PlayerInfo[playerid][pSpawn] == SPAWN_PD)
	    {
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		SetCameraBehindPlayer(playerid);
		if(PlayerInfo[playerid][pClan] == 2 || PlayerInfo[playerid][pLider] == 2)
	    {
	    	SetPlayerInterior(playerid, 6);
	     	SetPlayerVirtualWorld(playerid, 0);
	        SetPlayerPos(playerid, 255.7822,65.6216,1003.6406);
	        SetPlayerFacingAngle(playerid, 89.0739);
	        SetCameraBehindPlayer(playerid);
	    }
	    else if PlayerInfo[playerid][pSpawn] = SPAWN_OBICAN;   //---------------------------------553 dio
	    {
         SetPlayerPos(playerid, 822.0222, -1363.1288, -0.5078);
         SetPlayerFacingAngle(playerid, 316.2195);
		 SetCameraBehindPlayer(playerid);
		}
	}
	return 1;
}



563 dio

stock SCMF(playerid,color,fstring[],{Float, _}:...)  //------------------------563 dio
{
   new n=(numargs()-3)*4;
   if(n)
   {
      new message[128],arg_start,arg_end;
      #emit CONST.alt                fstring
      #emit LCTRL                    5
      #emit ADD
      #emit STOR.S.pri               arg_start
      #emit LOAD.S.alt               n
      #emit ADD
      #emit STOR.S.pri               arg_end
      do
      {
         #emit LOAD.I
         #emit PUSH.pri
         arg_end-=4;
         #emit LOAD.S.pri           arg_end
      }
      while(arg_end>arg_start);
      #emit PUSH.S                   fstring
      #emit PUSH.C                   255
      #emit PUSH.ADR                 message
      n+=4*3;
      #emit PUSH.S                   n
      #emit SYSREQ.C                 format
      n+=4;
      #emit LCTRL                    4
      #emit LOAD.S.alt               n
      #emit ADD
      #emit SCTRL                    4
      return SCM(playerid,color,message);
   }
   else return SCM(playerid,color,fstring);
}

Citat: David (Sabljak) A.k.A SABO(T) poslato Mart 18, 2013, 17:36:06 POSLE PODNE
else if PlayerInfo[playerid][pSpawn] = SPAWN_OBICAN;   //---------------------------------553 dio

else if(PlayerInfo[playerid][pSpawn] == SPAWN_OBICAN)  //ja mislim da je ovo to... cek da dalje pregledam

2 erora manje odlican si skripter vidim

Citat: David (Sabljak) A.k.A SABO(T) poslato Mart 18, 2013, 17:43:46 POSLE PODNE
stock SCMF(playerid,color,fstring[],{Float, _}:...)  //------------------------563 dio
{
   new n=(numargs()-3)*4;
   if(n)
   {
      new message[128],arg_start,arg_end;
      #emit CONST.alt                fstring
      #emit LCTRL                    5
      #emit ADD
      #emit STOR.S.pri               arg_start
      #emit LOAD.S.alt               n
      #emit ADD
      #emit STOR.S.pri               arg_end
      do
      {
         #emit LOAD.I
         #emit PUSH.pri
         arg_end-=4;
         #emit LOAD.S.pri           arg_end
      }
      while(arg_end>arg_start);
      #emit PUSH.S                   fstring
      #emit PUSH.C                   255
      #emit PUSH.ADR                 message
      n+=4*3;
      #emit PUSH.S                   n
      #emit SYSREQ.C                 format
      n+=4;
      #emit LCTRL                    4
      #emit LOAD.S.alt               n
      #emit ADD
      #emit SCTRL                    4
      return SCM(playerid,color,message);
   }
   else return SCM(playerid,color,fstring);
}


ovo mi nije jasno, sta je to? :S

neznam to je bilo u modu al primjeri sa tim su cjelo vrijeme slicni ovom

SCMF(id,BELA, "{00C0FF}Izbaceni ste iz svoje organizacije od lidera {FFFFFF}%s", GetName(playerid));

Citat: David (Sabljak) A.k.A SABO(T) poslato Mart 18, 2013, 17:49:13 POSLE PODNE
aj te primjere zamjeni sa ovakvim principom

na vrh
#define FSCM(%0,%1,%2,%3) format(d_string,128,%2,%3); \
SendClientMessage(%0,%1,d_string)


FSCM(id, BELA, "{00C0FF}Izbaceni ste iz svoje organizacije od lidera {FFFFFF}%s", GetName(playerid));


evo ga sad se sve vodi na 5 erora u 2 reda

C:\Users\korisnik\Desktop\skripta\pawno\include\YSI\y_utils.inc(427) : error 079: inconsistent return types (array & non-array)
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(566) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(566) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(566) : warning 215: expression has no effect
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(566) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(566) : fatal error 107: too many error messages on one line

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


5 Errors.


427 reed

public LoadUser_data(playerid,name[],value[])
{
	INI_String("Lozinka", PlayerInfo[playerid][pLozinka], 100);
	INI_String("Email", PlayerInfo[playerid][pEmail], 100);
	INI_Int("Novcanik",PlayerInfo[playerid][pNovcanik]);
	INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
	INI_Int("GameXpert",PlayerInfo[playerid][pGX]);
	INI_Int("Ubistva",PlayerInfo[playerid][pUbistva]);
	INI_Int("Smrti",PlayerInfo[playerid][pSmrti]);
	INI_Int("OnlineSati",PlayerInfo[playerid][pOnlineSati]);
	INI_Int("Level",PlayerInfo[playerid][pLevel]);
	INI_Int("Pol",PlayerInfo[playerid][pPol]);
	INI_Int("Poreklo",PlayerInfo[playerid][pPoreklo]);
	INI_Int("Registrovan",PlayerInfo[playerid][pRegistrovan]);
	INI_Int("Telefon",PlayerInfo[playerid][pTelefon]);
	INI_Int("GPS",PlayerInfo[playerid][pGPS]);
	INI_Int("DzeparosVreme",PlayerInfo[playerid][pDzeparosVreme]);
	INI_Int("Posao",PlayerInfo[playerid][pPosao]);
	INI_Int("Skin",PlayerInfo[playerid][pSkin]);   //_--------------------427 red
	INI_Int("OfflineBan",PlayerInfo[playerid][pOfflineBan]);
	INI_Int("Lider",PlayerInfo[playerid][pLider]);
	INI_Int("Clan",PlayerInfo[playerid][pClan]);
	INI_Int("Rank",PlayerInfo[playerid][pRank]);
	INI_Int("Spawn",PlayerInfo[playerid][pSpawn]);
	INI_Int("Oruzje1",PlayerInfo[playerid][pOruzje1]);
	INI_Int("Oruzje2",PlayerInfo[playerid][pOruzje2]);
	INI_Int("Oruzje3",PlayerInfo[playerid][pOruzje3]);
	INI_Int("Oruzje4",PlayerInfo[playerid][pOruzje4]);
	INI_Int("Municija1",PlayerInfo[playerid][pMunicija1]);
	INI_Int("Municija2",PlayerInfo[playerid][pMunicija2]);
	INI_Int("Municija3",PlayerInfo[playerid][pMunicija3]);
	INI_Int("Municija4",PlayerInfo[playerid][pMunicija4]);
	return 1;
}


566 red

stock FSCM(playerid,color,fstring[],{Float, _}:...) //_----- ovo je 566 red
{
   new n=(numargs()-3)*4;
   if(n)
   {
      new message[128],arg_start,arg_end;
      #emit CONST.alt                fstring
      #emit LCTRL                    5
      #emit ADD
      #emit STOR.S.pri               arg_start
      #emit LOAD.S.alt               n
      #emit ADD
      #emit STOR.S.pri               arg_end
      do
      {
         #emit LOAD.I
         #emit PUSH.pri
         arg_end-=4;
         #emit LOAD.S.pri           arg_end
      }
      while(arg_end>arg_start);
      #emit PUSH.S                   fstring
      #emit PUSH.C                   255
      #emit PUSH.ADR                 message
      n+=4*3;
      #emit PUSH.S                   n
      #emit SYSREQ.C                 format
      n+=4;
      #emit LCTRL                    4
      #emit LOAD.S.alt               n
      #emit ADD
      #emit SCTRL                    4
      return SCM(playerid,color,message);
   }
   else return SCM(playerid,color,fstring);
}

Citat: Lenon poslato Mart 18, 2013, 18:22:03 POSLE PODNE
Ovo ti je u includeu y_utils

C:\Users\korisnik\Desktop\skripta\pawno\include\YSI\y_utils.inc(427) : error 079: inconsistent return types (array & non-array)

a ovo skroz obrisi:

stock FSCM(playerid,color,fstring[],{Float, _}:...) //_----- ovo je 566 red
{
   new n=(numargs()-3)*4;
   if(n)
   {
      new message[128],arg_start,arg_end;
      #emit CONST.alt                fstring
      #emit LCTRL                    5
      #emit ADD
      #emit STOR.S.pri               arg_start
      #emit LOAD.S.alt               n
      #emit ADD
      #emit STOR.S.pri               arg_end
      do
      {
         #emit LOAD.I
         #emit PUSH.pri
         arg_end-=4;
         #emit LOAD.S.pri           arg_end
      }
      while(arg_end>arg_start);
      #emit PUSH.S                   fstring
      #emit PUSH.C                   255
      #emit PUSH.ADR                 message
      n+=4*3;
      #emit PUSH.S                   n
      #emit SYSREQ.C                 format
      n+=4;
      #emit LCTRL                    4
      #emit LOAD.S.alt               n
      #emit ADD
      #emit SCTRL                    4
      return SCM(playerid,color,message);
   }
   else return SCM(playerid,color,fstring);
}


i stavi ovo sto ti je David rekao:

#define FSCM(%0,%1,%2,%3) format(d_string,128,%2,%3); \
SendClientMessage(%0,%1,d_string)


pa probaj ovako hoce li raditi

pobrisem i dalje je tu includeam i dalje je tu eror

Citat: Lenon poslato Mart 18, 2013, 18:29:48 POSLE PODNE
probaj umjesto ovoga:

FSCM(id, BELA, "{00C0FF}Izbaceni ste iz svoje organizacije od lidera {FFFFFF}%s", GetName(playerid));


staviti ovako:

format(string, sizeof(string),"Izbaceni ste iz svoje organizacije od lidera {FFFFFF}%s", GetName(playerid));
SendClientMessage(id, BELA,string);

pobriso sam onaj stock i baca mi ove erore

C:\Users\korisnik\Desktop\skripta\pawno\include\YSI\y_utils.inc(427) : error 079: inconsistent return types (array & non-array)
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(569) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(569) : error 017: undefined symbol "GivePlayerWeapons"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(571) : error 017: undefined symbol "weaponid1"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(572) : error 017: undefined symbol "weaponid2"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(573) : error 017: undefined symbol "weaponid3"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(574) : error 017: undefined symbol "weaponid4"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(575) : error 017: undefined symbol "weaponid5"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(576) : error 017: undefined symbol "weaponid6"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(580) : warning 225: unreachable code
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(580) : error 029: invalid expression, assumed zero
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(580) : warning 202: number of arguments does not match definition
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(581) : error 001: expected token: ";", but found "{"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(733) : error 010: invalid function or declaration
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(733) : error 001: expected token: ")", but found "const"
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(733) : error 001: expected token: "=", but found "["
C:\Users\korisnik\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(733) : fatal error 107: too many error messages on one line

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


15 Errors.