SA-MP Forums Archive
Error ;/ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error ;/ (/showthread.php?tid=328295)



Error ;/ - sanplayer - 24.03.2012

my friend and me get his error:

Код:
		HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .distance = 30.0);
Код:
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(3313) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")



Re: Error ;/ - Twisted_Insane - 24.03.2012

I don't think that your problem is there, do you have somewhere this line? Or such a line:

pawn Код:
public Audio_OnSetPack
If yes, then you'll need to forward it! Show it to me!


Re: Error ;/ - sanplayer - 24.03.2012

and this:

Код:
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(16899) : error 017: undefined symbol "distance"
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(16899) : warning 215: expression has no effect
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(16899) : error 001: expected token: ";", but found ")"
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(16899) : error 029: invalid expression, assumed zero
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(16899) : fatal error 107: too many error messages on one line
Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .distance = 30.0);



Re: Error ;/ - Rob_Maate - 24.03.2012

That's not an error, it's only a compiler warning.

However - It does represent that there's something wrong with one of your includes.

I'm assuming your using the Audio Streamer plugin?


Re: Error ;/ - Twisted_Insane - 24.03.2012

Define "distance" then:

pawn Код:
new Float:distance;



Re: Error ;/ - sanplayer - 24.03.2012

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
I don't think that your problem is there, do you have somewhere this line? Or such a line:

pawn Код:
public Audio_OnSetPack
If yes, then you'll need to forward it! Show it to me!
I got this

Код:
public Audio_OnSetPack(audiopack[])
{
	foreach(Player, i)
	{
	    Audio_TransferPack(i);
	}
	return 1;
}
but no forward when i do "forward Audio" on the Find Box


Re: Error ;/ - Twisted_Insane - 24.03.2012

Oh god, then forward it! :P

pawn Код:
forward Audio_OnSetPack(audiopack[]);
Do it right above the callback (the public you've just posted)!


Re: Error ;/ - sanplayer - 24.03.2012

now this error:

Код:
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(14840) : error 029: invalid expression, assumed zero
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(14840) : error 001: expected token: ")", but found "new"
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(14840) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(14840) : fatal error 107: too many error messages on one line
Код:
	else if(type == TYPE_TPDRUGRUNTIMER)
	{
    	if(GetPVarInt(playerid, "tpDrugRunTimer") > 0)
		{
			SetPVarInt(playerid, "tpDrugRunTimer", GetPVarInt(playerid, "tpDrugRunTimer")-1);
			SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPDRUGRUNTIMER);
		}
	}



Re: Error ;/ - Twisted_Insane - 24.03.2012

Sigh...Which one is the line with the error? Also, you should be able to fix something like that by yourself dude...


Re: Error ;/ - sanplayer - 24.03.2012

Quote:
Originally Posted by sanplayer
Посмотреть сообщение
now this error:

Код:
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(14840) : error 029: invalid expression, assumed zero
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(14840) : error 001: expected token: ")", but found "new"
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(14840) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Ghost\Desktop\Next Generation Roleplay\gamemodes\CCRP-Update.pwn(14840) : fatal error 107: too many error messages on one line
Код:
	else if(type == TYPE_TPDRUGRUNTIMER)
	{
    	if(GetPVarInt(playerid, "tpDrugRunTimer") > 0)
		{
			SetPVarInt(playerid, "tpDrugRunTimer", GetPVarInt(playerid, "tpDrugRunTimer")-1);
			SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPDRUGRUNTIMER);
		}
	}
help