FOnline Development > Questions and Answers
FOnline SDK - Question
Xarr:
--- Quote from: Mayck on May 20, 2011, 11:27:55 pm ---
--- Code: ---if(message=="~xy")
{
uint16 hexX=0, hexY=0;
GetMonitorHex(MouseX, MouseY, hexX, hexY);
Message("Hex: "+hexX+" "+hexY);
return false;
}
--- End code ---
--- End quote ---
are you sure that you mean
--- Code: --- Message("Hex: "+hexX+" "+hexY);
--- End code ---
? (because the " )
Mayck:
Damn i forgot something , there should be __MouseX instead of MouseX(edited the previous post)
--- Quote from: Xarr on May 21, 2011, 01:15:08 am ---are you sure that you mean
--- Code: --- Message("Hex: "+hexX+" "+hexY);
--- End code ---
? (because the " )
--- End quote ---
Don't know what's wrong with that line (looks fine to me)
Edit: if you use + between string and number variable the number gets automatically converted to string so it's practically same like if i wrote Message("Hex: 666 13");
Wipe:
Much better - imho - is to use DrawText() inside main loop; this way you can display much more info without typing command every minute.
Xarr:
--- Quote from: Mayck on May 21, 2011, 01:27:00 am ---Don't know what's wrong with that line (looks fine to me)
--- End quote ---
then i looked wrong, shit happens
Mayck:
--- Quote from: Wipe on May 21, 2011, 01:57:19 am ---Much better - imho - is to use DrawText() inside main loop; this way you can display much more info without typing command every minute.
--- End quote ---
Indeed.
Strange, i never thought about using it for coordinates (I guess i got used too much to console typing ;D ), though I already use it for capturing countdowns and similiar things :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version