AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Difference between iPlayer and Player (https://forums.alliedmods.net/showthread.php?t=251839)

Estland 11-20-2014 14:08

Difference between iPlayer and Player
 
Can anyone explain, what's the difference between
Code:

message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, player)
write_byte(player)

and
Code:

message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, iPlayer)
write_byte(iPlayer)

One takes for example player's teamcolor and other takes your teamcolor?

Jhob94 11-20-2014 14:30

Re: Difference between iPlayer and Player
 
Quote:

Originally Posted by Estland (Post 2226425)
Can anyone explain, what's the difference between
Code:

message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, player)
write_byte(player)

and
Code:

message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, iPlayer)
write_byte(iPlayer)

One takes for example player's teamcolor and other takes your teamcolor?

No, thats just the identification. player can be = id. you name it whatever you want. To say what it actually does, depends of what you have before it.

HamletEagle 11-20-2014 14:41

Re: Difference between iPlayer and Player
 
It's just a variable name used in that plugin by the author.

meTaLiCroSS 11-20-2014 20:43

Re: Difference between iPlayer and Player
 
Hungarian notation


All times are GMT -4. The time now is 17:45.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.