![]() |
Server flags
How am I meant to do something like this in GS2
PHP Code:
PHP Code:
thiso.playerzonex = int(playerx/((64*20)/5)); thiso.playerzoney = int(playery/((64*20)/5)); Earlier in the script. How do I do that in GS2? |
This is where you use either makevar, or some weird use of the concatination operator and a few brackets.
makevar("serverr.zone" @ thiso.playerzonex - thiso.playerzoney); serverr.("zone" @ thiso.playerzonex - thiso.playerzoney); The latter is generally more approved by Stefan and most of the scripting community, I think it looks kind of odd though x_x |
But the serverr string is something like
serverr.zone4-4 It doesn't take away thiso.playerzoney from thiso.playerzonex, so would that make it serverr.("zone" @ thiso.playerzonex @ "-" @ thiso.playerzoney); |
Yes.
|
Thanks for your help =)
|
| All times are GMT +2. The time now is 11:05 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.