SA-MP Forums Archive
Text Draws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Text Draws (/showthread.php?tid=159549)



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, FloatrawDistance, 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