Hello everyone!
I was working on a button that would open in different locations for different maps using GlobalVar.
But unfortunately, I could not get it to work either because of my mistakes or Lapper in general isn't able to do this.
Here's the source.
That's the button's position, size, style etc..
The PrivMsg obviously works, but the button shows me some incorrect number of parameters in the errorlog file.
I have tried many ways such as putting "". and ."" at the beginning and end of $ButtonPosition but came to no luck.
Your help is always appreciated.
I was working on a button that would open in different locations for different maps using GlobalVar.
But unfortunately, I could not get it to work either because of my mistakes or Lapper in general isn't able to do this.
Here's the source.
<?php
GlobalVar $ButtonPosition;
$ButtonPosition["SO1X","GPS_Location1"] = "104,37,77,6,6,-1,128";
?>
<?php
CASE "!btn123":
$Track = GetLapperVar("ShortTrackName");
$GPS_Location = GetPlayerVar($userName,"GPSLocation");
PrivMsg($ButtonPosition[$Track,$GPS_Location]); #Debug
OpenButton($userName,"btn_pos",$ButtonPosition[$Track,$GPS_Location],"^1Button!");
BREAK;
?>
I have tried many ways such as putting "". and ."" at the beginning and end of $ButtonPosition but came to no luck.
Your help is always appreciated.