Error ;/
#1

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")
Reply
#2

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!
Reply
#3

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);
Reply
#4

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?
Reply
#5

Define "distance" then:

pawn Код:
new Float:distance;
Reply
#6

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
Reply
#7

Oh god, then forward it! :P

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

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);
		}
	}
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)