1 func choosing, 1 func using
How to make one function that chooses an player (nick/steamid), and one function that uses an function width that player?
example (console): amx_choose Obbin [AMXx] You choosen Obbin! amx_chooseexec "say AMXx owns" Obbin: AMXx owns |
Code:
EDIT: Use Exec 2 by v3x, it's a lot better. |
WRONG ^^^
lastfunction(id) { function(id,informationfromlastfunction) } function(id,informationfromlastfunction) { client_print(0,print_chat,informationfromlast function) } |
In the first function store the player's id in a variable, in the second function use the stored player's id.
|
thx avalanche!
|
wow nice job avalanche
|
hmm. when i create an variable in one func and then uses it in 'nother func compiler says "unidentifined sypbol"
|
Code? ;]
|
Make a global var not one in the first function
|
| All times are GMT -4. The time now is 14:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.