SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 21/08/2011, 11:07 AM   #1
Improvement™
Big Clucker
 
Improvement™'s Avatar
 
Join Date: Aug 2011
Posts: 131
Reputation: 9
Default [SLOVED] Create3DTextLabel Function Doesn't Support [Arrays]?

PROBLEM SLOVED!
Still am looking what caused the warnings, I will leave a note here once I find it out.


Title says it all, or am I doing something wrong here?

pawn Code:
//on top of script
121.    new Text3D:TextLabel[2][9];


//under OnGameModeInit();
268.    TextLabel[1][1] = Create3DTextLabel("Activated", 0x008080FF, 3646.271, -1412.883, 305.455, 15.0,0);


//under a Command Text
466.    Update3DTextLabelText(TextLabel[1][1], 0xFFFFFFFF, "Disabled");

These are the warnings I get while compiling.
Code:
C:\...\gamemodes\GameMode.pwn(268) : warning 213: tag mismatch
C:\...\gamemodes\GameMode.pwn(466) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.


FIRST EDIT:
Once I delete both the array, the compiler doesn't show any warnings/errors.
So my guess is that there is something wrong with the arrays?
Code:
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
__________________
Still A Secret!


Last edited by Improvement™; 21/08/2011 at 11:32 AM. Reason: First Edit Added.
Improvement™ is offline  
Old 21/08/2011, 11:10 AM   #2
Darnell
Gangsta
 
Darnell's Avatar
 
Join Date: Jul 2010
Posts: 824
Reputation: 35
Default Re: Create3DTextLabel Function Doesn't Support [Arrays]?

pawn Code:
TextLabel[1][1] = Create3DTextLabel("Activated", 0x008080FF, 3646.271, -1412.883, 305.455+0.75, 15.0,0);
Try this.
Darnell is offline  
Old 21/08/2011, 11:14 AM   #3
Improvement™
Big Clucker
 
Improvement™'s Avatar
 
Join Date: Aug 2011
Posts: 131
Reputation: 9
Default Re: Create3DTextLabel Function Doesn't Support [Arrays]?

Quote:
Originally Posted by Darnell View Post
pawn Code:
TextLabel[1][1] = Create3DTextLabel("Activated", 0x008080FF, 3646.271, -1412.883, 305.455+0.75, 15.0,0);
Try this.
Still the same warnings.
Not to sound silly, but what is the point of increasing the height of the object by 0.75 anyways?
__________________
Still A Secret!

Improvement™ is offline  
Old 21/08/2011, 11:19 AM   #4
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 2,630
Reputation: 409
Default Re: Create3DTextLabel Function Doesn't Support [Arrays]?

I don't seem to be getting these errors. Your colours are actually non-existent, they are meant to be 6 characters after the 0x, not 8, not sure if that would give you tag mismatches though.
__________________
[HiC]TheKiller is offline  
Old 21/08/2011, 11:25 AM   #5
Improvement™
Big Clucker
 
Improvement™'s Avatar
 
Join Date: Aug 2011
Posts: 131
Reputation: 9
Default Re: Create3DTextLabel Function Doesn't Support [Arrays]?

For those who are attempting to help me, please read the FIRST EDIT, on the Main Post.


PROBLEM SLOVED!
__________________
Still A Secret!

Improvement™ is offline  
Old 21/08/2011, 11:33 AM   #6
AndreT
Gangsta
 
AndreT's Avatar
 
Join Date: Jul 2011
Posts: 966
Reputation: 413
Default Re: Create3DTextLabel Function Doesn't Support [Arrays]?

Oh damn, didn't catch that the problem is fixed. The green just blended in with your signature!

Quote:
Originally Posted by [HiC]TheKiller View Post
I don't seem to be getting these errors. Your colours are actually non-existent, they are meant to be 6 characters after the 0x, not 8, not sure if that would give you tag mismatches though.
0x008080FF is a perfectly valid color. The FF is for the alpha (opacity)!

I just tried creating similar code and it compiles perfectly without warnings.

Actually I have no idea how tags are beneficial, someone help me out if necessary, but you could also mess around with the tags like this:
pawn Code:
new TextLabel[2][9];
// ...
TextLabel[1][1] = _:Create3DTextLabel("Activated", 0x008080FF, 3646.271, -1412.883, 305.455, 15.0,0);
// ...
Update3DTextLabelText(Text3D:TextLabel[1][1], 0xFFFFFFFF, "Disabled");
AndreT is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create3dtextlabel Zonoya Help Archive 10 12/08/2011 11:09 PM
[Include] DBits - 16-bit and 8-bit arrays support. MrDeath537 Includes 22 15/06/2011 12:39 PM
Multi dimensional arrays passed into a function rannandaman Help Archive 3 27/01/2011 11:54 PM
Create3dtextlabel wups Help Archive 8 27/08/2010 09:23 PM
Create3DTextLabel help please... introzen Help Archive 2 29/12/2009 09:01 AM


All times are GMT. The time now is 11:13 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.