SA-MP Forums Archive
What does the "_:" mean? - 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)
+--- Thread: What does the "_:" mean? (/showthread.php?tid=628796)



What does the "_:" mean? - SUPERlittlefu - 15.02.2017

Hi,everybody!
I'm learning the SA-MP Scripting.
I found a include files.
But... I met a line code...
I don`t know what it means.

I searched the SA-MP wiki.
I searched the ******.

But nothing.

Code:
Код HTML:
for(new i; i < MAX_PLAYER_BARS; i++)
    pbar_Data[playerid][_:i][pbar_valid] = false;



Re: What does the "_:" mean? - DRIFT_HUNTER - 15.02.2017

That is called tag. Tags are prefixes in pawn, like Float:
_: actually means without tag.
For example when we say new something;
its same as telling new _omething;


Re: What does the "_:" mean? - Gammix - 15.02.2017

Its called "detag"*. It represents the value or variable or element without the tag.

PHP код:
new Float:real 9.99// has tag Float:
// you cannot do this
new integer real;
// but can do this
new integer _:real



Re: What does the "_:" mean? - SUPERlittlefu - 15.02.2017

@DRIFT_HUNTER
@Gammix
Thanks!
I think I understand.


Re: What does the "_:" mean? - SUPERlittlefu - 15.02.2017

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Its called "detag"*. It represents the value or variable or element without the tag.

PHP код:
new Float:real 9.99// has tag Float:
// you cannot do this
new integer real;
// but can do this
new integer _:real
Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
That is called tag. Tags are prefixes in pawn, like Float:
_: actually means without tag.
For example when we say new something;
its same as telling new _omething;
Thanks!
I think I understand.