What does the "_:" mean?
#1

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

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;
Reply
#3

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

@DRIFT_HUNTER
@Gammix
Thanks!
I think I understand.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)