-
Posts
1,105 -
Joined
-
Last visited
Everything posted by Aibo
-
maybe because you dont have any /pm command in this script?
-
well your code wont work, because giveRandomMoney is nil when you call addEventHandler. :3
-
what command? dx functions need a number, a position, not any command or whatever. sWidth and sHeight are simply variables with screen width and height in pixels, and since you've moved the hud to the top, you dont need sHeight. but you still need sWidth — cause your hud is on the right. screen coordinates start in top left corner, which is 0,0. well. idk what else i can say. :3
-
you should simply put position in pixels from the top of the screen. you dont have to subtract anything or use sHeight. PS:
-
no blur? well, whatever you say, sir. as for code: since your hud is on top — calculate vertical offset from 0 (which is top of the screen), not the bottom (sHeight). that way you should be fine, at least vertically.
-
i wouldnt say «it looks great», but whatever (some hints: dont scale (up) images unless you absolutly need to; use 2^x image sizes to prevent blurring). on topic: try using relative positioning for the hud, which is calculated on client resource start. anyway you should at least post the code that places the hud if you're expecting to get some help or advice. moved to scripting section.
-
if isObjectInACLGroup("user."..getPlayerName(hitElement), aclGetGroup("police")) then though you may want to use account name instead of player name.
-
well i did a test myself (1.1 nightly 2330): local a = 99999999 for b = 1, 10 do local c = a + b outputChatBox(a.."+"..b.."="..c, getRootElement()) end client output: 99999999+1=100000000 99999999+2=100000000 99999999+3=100000000 99999999+4=100000000 99999999+5=100000000 99999999+6=100000008 99999999+7=100000008 99999999+8=100000008 99999999+9=100000008 99999999+10=100000008 server output: 99999999+1=100000000 99999999+2=100000001 99999999+3=100000002 99999999+4=100000003 99999999+5=100000004 99999999+6=100000005 99999999+7=100000006 99999999+8=100000007 99999999+9=100000008 99999999+10=100000009 EDIT: it starts after 2^24: 16777210+1=16777211 16777210+2=16777212 16777210+3=16777213 16777210+4=16777214 16777210+5=16777215 16777210+6=16777216 < 16777210+7=16777216 16777210+8=16777218 16777210+9=16777220 16777210+10=16777220
-
are you testing it client-side or server-side? because i had similar issue, but with hex numbers over 0x80000000 (color codes with alpha). like 0xFF0000FF becomes 0xFF000100 for no reason in client script. which doesnt happen in server script.
-
marker type should be "cylinder", not "Cylinder". it's case-sensitive
-
where's myMarker? and player is already player element, you dont need this: local player = getPlayerFromName(player);
-
[ and ] are special characters, you need to escape them with \ thisDriftMapName = string.gsub( thisDriftMapName, "\[", "_" ) thisDriftMapName = string.gsub( thisDriftMapName, "\]", "_" )
-
in your teleportMassive() function player who typed the command is put in «hitElement» variable, while you teleporting the «player» variable. also getPlayerOccupiedVehicle() is deprecated, use getPedOccupiedVehicle() and what is the point of «if vehicle or not vehicle then»?
-
check if you typed the name right, getPlayerFromName() needs a full player name. and names are case-sensitive. also /debugscript 3
-
http://www.intmath.com/trigonometric-gr ... litude.php
-
thePlayer is not an account, getAccountName requires an account, not player element.
-
local Points = executeSQLSelect("PointsSystem", "earnedpoints", "accountname = '"..getAccountName(account).."'") local DeathMatchesWon = executeSQLSelect("PointsSystem", "DMWins", "accountname = '"..getAccountName(account).."'") so where's the account?
-
and add function access rights to ACL
-
«source» of GUI events are GUI elements, not the players, since those events are clientside and only one player (local player) can actually «create» them. right now you're setting element data of a GUI element and trying to get this data from this GUI element on the server side (?). also «source» is a hidden variable passed to event handler functions, you dont need «function(source)» — this will overwrite it with nil, because your event has no arguments. PS: why dont you use event arguments instead of element data anyway?
-
well you're overwriting the data in the table. and you havent shown those parts (which trigger the bad argument error). that is, of course, if your files are the same type and from the same resource. in case of different resources — you'll have to use some other way. like exported functions or events.
-
i hope you create windowMarkerHit function before addEventHandler, not after? because markers in interiors work just fine.
-
what's the point in call() within the same resource?
-
you're passing no arguments to the function, you dont even use source. and guiSetText
