| Mirage Source http://www.miragesource.net/forums/ |
|
| index not defined http://www.miragesource.net/forums/viewtopic.php?f=201&t=4088 |
Page 1 of 1 |
| Author: | lalablah [ Sat Aug 02, 2008 3:19 am ] |
| Post subject: | index not defined |
sorry for all the noob questions but its better to get them answered then to ask many more times, whenever i use index in vb6 commands like call playerwarp(index, 1, 10, 10) it says wariable not defined and highlights index. whats the problem/fix? |
|
| Author: | Dragoons Master [ Sat Aug 02, 2008 4:27 am ] |
| Post subject: | Re: index not defined |
Index usually is a server variable, and it's local so you need to have it on your function, it's not a global variable. Client Side, sometimes, you need to call the function that sends the packet ordering for something, like in the case of player warping, it's: Code: Call WarpTo(n) Where n is the map number.
|
|
| Author: | lalablah [ Sat Aug 02, 2008 4:33 am ] |
| Post subject: | Re: index not defined |
oh thanks |
|
| Author: | Lea [ Sat Aug 02, 2008 6:21 am ] |
| Post subject: | Re: index not defined |
Client side has a global variable named MyIndex that would make the functions apply to you. To get other indexes, you'd need to ask the server. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|