Text Draws
#1

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
Reply
#2

format(string,sizeof string,"%d",CarInfo[h][cOwned]);
CarLabel = Create3DTextLabel(string,0.0, 0.0, 0.0 ,10 , 0);
Reply
#3

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.
Reply
#4

OFF: How do you enable the Header Size, Code Size, ect. ?
Reply
#5

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)
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)