[Help] Loads of errors and warnings !
#1

I added 3DTextLabels for Owned and Unowned Vehicles and I get these errors :

Код:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5711) : warning 203: symbol is never used: "vehicle_id"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5718) : warning 213: tag mismatch
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5732) : warning 204: symbol is assigned a value that is never used: "string"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5751) : warning 219: local variable "h" shadows a variable at a preceding level
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5754) : warning 219: local variable "string" shadows a variable at a preceding level
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5754) : warning 204: symbol is assigned a value that is never used: "string"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5744) : warning 204: symbol is assigned a value that is never used: "string"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5775) : warning 219: local variable "h" shadows a variable at a preceding level
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5778) : warning 219: local variable "string" shadows a variable at a preceding level
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5778) : warning 204: symbol is assigned a value that is never used: "string"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5768) : warning 204: symbol is assigned a value that is never used: "string"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5800) : warning 219: local variable "h" shadows a variable at a preceding level
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5803) : warning 219: local variable "string" shadows a variable at a preceding level
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5803) : warning 204: symbol is assigned a value that is never used: "string"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5793) : warning 204: symbol is assigned a value that is never used: "string"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5814) : error 039: constant symbol has no size
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5816) : error 028: invalid subscript (not an array or too many subscripts): "cInfo"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5816) : warning 215: expression has no effect
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5816) : error 001: expected token: ";", but found "]"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5816) : error 029: invalid expression, assumed zero
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(5816) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Errors lines:

pawn Код:
for(new h = 0; h < sizeof(cInfo); h++) // line 5814
{
if(cInfo[h][cBought] == 0) // line 5816
Reply
#2

Theres more than 3 error lines in that compiler
Reply
#3

That's not the only lines that have errors
show us the whole code so we can help you.
Reply
#4

pawn Код:
for(new h = 0; h < sizeof(cInfo); h++)
{
if(cInfo[h][cBought] == 0)
{ new string[256];
{ new string1[256];
format(string1, sizeof(string), "%s For Sale! Cost: %d $ Level: %d",cInfo[h][cName],cInfo[h][cValue],cInfo[h][cLevel]);
Create3DTextLabel(string1,COLOR_GREEN,cInfo[h][cParkx], cInfo[h][cParky], cInfo[h][cParkz]+1,60,0,1);
}
for(new h = 0; h < sizeof(cInfo); h++)
{
if(cInfo[h][cBought] == 1)
{ new string[256];
{ new string1[256];
format(string1, sizeof(string), "This Vehicle is Owned by %s",cInfo[h][cOwner]);
Create3DTextLabel(string1,COLOR_YELLOW,cInfo[h][cParkx], cInfo[h][cParky], cInfo[h][cParkz]+1,60,0,1);
}
}
}
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)