Text Draws -
Hash [NL-RP] - 13.07.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
Re: Text Draws -
Hiddos - 13.07.2010
format(string,sizeof string,"%d",CarInfo[h][cOwned]);
CarLabel = Create3DTextLabel(string,0.0, 0.0, 0.0 ,10 , 0);
Re: Text Draws -
Hash [NL-RP] - 13.07.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.
Re: Text Draws -
MikkelGutten - 13.07.2010
OFF: How do you enable the Header Size, Code Size, ect. ?
Re: Text Draws -
Hiddos - 13.07.2010
Quote:
Originally Posted by MikkelGutten
OFF: How do you enable the Header Size, Code Size, ect. ?
|
https://sampwiki.blast.hk/wiki/TextDrawCreate & it's related functions.
On-topic: Take a look at the parameters:
Parameters:
(text[], color, Float:X, Float:Y, Float:Z, Float
rawDistance, virtualworld, testLOS)
Re: Text Draws -
Hash [NL-RP] - 13.07.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