hi everyone,
At the moment, i have a command which is -gold x y
I want to be able to get the parameters x and y
Here is how i get x
function Trig_giveGold takes nothing returns nothing
local integer i
local integer a
loop
exitwhen ( "" = substring(GetEventPlayerChatString(), 7, 1)
a = a + substring(GetEventPlayerChatString(), 7, 1)
end loop
call DisplayTextToForce( GetPlayersAll(), a )
end function
Im new in jass
Thx.
At the moment, i have a command which is -gold x y
I want to be able to get the parameters x and y
Here is how i get x
function Trig_giveGold takes nothing returns nothing
local integer i
local integer a
loop
exitwhen ( "" = substring(GetEventPlayerChatString(), 7, 1)
a = a + substring(GetEventPlayerChatString(), 7, 1)
end loop
call DisplayTextToForce( GetPlayersAll(), a )
end function
Im new in jass
Thx.