Posts: 161
Threads: 34
Joined: May 2010
for(new h = 0; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
CarLabel = Create3DTextLabel( "%d", CarInfo[h][cOwned],0.0, 0.0, 0.0 ,10 , 0);
Attach3DTextLabelToVehicle( CarLabel, 333, 0.0, 0.0, 2.0);
}
}
What is wrong with that i try to add a color but keeps giving errors please help
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
format(string,sizeof string,"%d",CarInfo[h][cOwned]);
CarLabel = Create3DTextLabel(string,0.0, 0.0, 0.0 ,10 , 0);
Posts: 161
Threads: 34
Joined: May 2010
C:\Users\Hash\Desktop\NightLife\NightLife RP\gamemodes\NLRP.pwn(1178
: warning 213: tag mismatch
C:\Users\Hash\Desktop\NightLife\NightLife RP\gamemodes\NLRP.pwn(1178
: warning 202: number of arguments does not match definition
C:\Hash\Parent\Desktop\NightLife\NightLife RP\gamemodes\NLRP.pwn(1178
: warning 204: symbol is assigned a value that is never used: "CarLabel"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 10416 bytes
Code size: 1855752 bytes
Data size: 2515816 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4214 cells (16856 bytes)
Total requirements: 4398368 bytes
3 Warnings.
Posts: 79
Threads: 3
Joined: Jul 2010
Reputation:
0
OFF: How do you enable the Header Size, Code Size, ect. ?
Posts: 161
Threads: 34
Joined: May 2010
Quote:
Originally Posted by MikkelGutten
OFF: How do you enable the Header Size, Code Size, ect. ?
|
I dont know, it only applies when i compile large scripts, when i compile small ones it dont show