3 Really annoying WARNINGS.
#1

There are the warnings :

PHP код:
C:\Documents and Settings\gidon\щемзп дтбегд\VortexForBen\gamemodes\VortexRoleplay.pwn(1383) : warning 202number of arguments does not match definition
C
:\Documents and Settings\gidon\щемзп дтбегд\VortexForBen\gamemodes\VortexRoleplay.pwn(1672) : warning 202number of arguments does not match definition
C
:\Documents and Settings\gidon\щемзп дтбегд\VortexForBen\gamemodes\VortexRoleplay.pwn(26159) : warning 202number of arguments does not match definition 
There are the lines :

Line 1383 :
Код:
	Create3DTextLabel(string,RED,Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0);
Line 1672:
Код:
				Create3DTextLabel(string,RED,Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0);
Line 26159:
Код:
       						Houses[NewHouseID][H3DText] = Create3DHouse();
It might be connected to the warning so, here's the Stock of Create3DHouse() :

Код:
stock Create3DHouse(string[128])
for(new h = 0; h < sizeof(Houses); h++)
{
	new NewHouseID = SpawnedHouses+1;
	if(Houses[h][HousePrice] == -1)
	{
	format(string, sizeof(string), "House %d", h);
	Create3DTextLabel(string,RED,Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0);
	}
	else
	{
	format(string, sizeof(string), "House %d\n Price: %d", h, Houses[h][HousePrice]);
	Create3DTextLabel(string,ADMIN_GREEN,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0);
	}
}
Reply
#2

You are forgetting to add the 'x' parameter to the Create3DTextLabel functions! Also, the testLOS.
pawn Код:
Create3DTextLabel(string,RED,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0,1);
Reply
#3

Great! thank you, but there's still a problem with line 1672. =\
Do you have any clue how to fix it? or you need more details or such as like this.
Reply
#4

What is the warning/error? Is it the same as you were receiving before?

Considering 1383 is the exact same line as the one you are still receiving an error from, I'm guessing you didn't change the line.
Reply
#5

Sorry!, I meant to line 26159 - this line is really important actually.
Reply
#6

Ah. You are forgetting to use the string parameter that you created for the function. Example:
pawn Код:
Houses[NewHouseID][H3DText] = Create3DHouse("You don't use this");
However, you never use the variable (to any real purpose to pass a specific value to it) through the function. You should just create the variable inside the funciton. You would also leave 26159 as it is.
pawn Код:
stock Create3DHouse()
{
new string[ 128 ];
for(new h = 0; h < sizeof(Houses); h++)
{
    new NewHouseID = SpawnedHouses+1;
    if(Houses[h][HousePrice] == -1)
    {
    format(string, sizeof(string), "House %d", h);
    Create3DTextLabel(string,RED,Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0);
    }
    else
    {
    format(string, sizeof(string), "House %d\n Price: %d", h, Houses[h][HousePrice]);
    Create3DTextLabel(string,ADMIN_GREEN,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0);
    }
      }
}
Reply
#7

I really appericate your help, there aint warnings now - thanks to you!. =]!

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)