Raised This Month: $12 Target: $400
 3% 

Solved [CS:GO] Pass a data from datapack to a menu.


Post New Thread Reply   
 
Thread Tools Display Modes
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 03-19-2018 , 14:44   Re: [CS:GO] Pass a data from datapack to a menu.
Reply With Quote #11

Quote:
Originally Posted by Dr!fter
g_iVictim is an array.
Quote:
Originally Posted by PinHeaDi View Post
It works, but it prints that I killed the console.

Quote:
Originally Posted by PinHeaDi View Post
[code]

Nvm, that worked.
That could make problems when two player dies same time.

Use the example by 8guawong but don't forget to use the array on PrintToChat:
g_iVictim[attacker]
PHP Code:

g_iVictim
[attacker] = victim

//....

CPrintToChatAll("%N уби %N с причина: ..."attackerg_iVictim[attacker]) 
__________________
coding & free software
shanapu is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 03-20-2018 , 07:51   Re: [CS:GO] Pass a data from datapack to a menu.
Reply With Quote #12

Yeah, now I got it. g_iVictim(the victim)[attacker(and who killed him)]. Thank you very much.
__________________
PinHeaDi is offline
Reply


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

Forum Jump


All times are GMT -4. The time now is 08:11.


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