
micheal1230
Members-
Posts
390 -
Joined
-
Last visited
Everything posted by micheal1230
-
I Get That Error Script: function resStart() local result = mysql:query_fetch_assoc("SELECT value FROM settings WHERE name='globalsupplies' LIMIT 1") globalSupplies = tonumber(result["value"]) end addEventHandler("onResourceStart", getResourceRootElement(), resStart)
-
Attempts To Call Global getLocalPlayer (a Nil Value)
micheal1230 replied to micheal1230's topic in Scripting
Thanks! -
Well The Title Says All i Get That Error, Attempts To Call Global getLocalPlayer (a Nil Value) My Script! function armor(thePlayer) name = getPlayerName(getLocalPlayer(thePlayer)) if name == "Harry_Shea" then setPedArmor(thePlayer, 100) end end addCommandHandler("armor",armor)
-
Cant Get Color To Work Again Arraying To All Players
micheal1230 replied to micheal1230's topic in Scripting
Thanks Man! -
Well I Want This Message To Post World Wide Over The Server AKA The arrayPlayer Part Main Part: outputChatBox("The Current Event Has Been Unlocked!!!",arrayPlayer,0,255,255) Whole Function: function lockevent(thePlayer,commandName) if not exports.global:isPlayerSuperAdmin(thePlayer) then return end if not getElementData(root,"activeevent") then outputChatBox("There are no active events",thePlayer,255,2,2) return end outputChatBox("The Current Event Has Been Unlocked!!!",arrayPlayer,0,255,255) setElementData(root,"lockevent",false) triggerClientEvent(root,"doOutput",root,255,255,255,"EVENT: Current event has been unlocked by an admin") end addCommandHandler("unlockevent",lockevent)
-
function makePed(source, commandName, name, priceratio) if not (name) then outputChatBox("SYNTAX: /addfuelpoint name priceratio", thePlayer, 255, 194, 14) else local x,y,z = getElementPosition(source) theNewPed = createPed (50, x,y,z) exports.pool:allocateElement(theNewPed) local rz = getPedRotation(source) setPedRotation (theNewPed, rz) setElementFrozen(theNewPed, true) local data = exports.mysql:query_insert_free("INSERT INTO fuelpeds SET name='" .. name .. "', skin='" .. 50 .. "', posX='" .. x .. "', posY='" .. y .. "', posZ='" .. z .. "', rotZ='" .. rz .. "', priceratio='" .. priceratio .. "'" ) --setPedAnimation(theNewPed, "FOOD", "FF_Sit_Loop", -1, true, false, true) exports['anticheat-system']:changeProtectedElementDataEx(theNewPed, "ped:name", name, true) exports['anticheat-system']:changeProtectedElementDataEx(theNewPed, "ped:fuelped",true) exports['anticheat-system']:changeProtectedElementDataEx(theNewPed, "fuel:priceratio" , priceratio or 100, false) -- For the language system exports['anticheat-system']:changeProtectedElementDataEx(theNewPed, "languages.lang1" , 1, false) exports['anticheat-system']:changeProtectedElementDataEx(theNewPed, "languages.lang1skill", 100, false) exports['anticheat-system']:changeProtectedElementDataEx(theNewPed, "languages.lang2" , 2, false) exports['anticheat-system']:changeProtectedElementDataEx(theNewPed, "languages.lang2skill", 100, false) exports['anticheat-system']:changeProtectedElementDataEx(theNewPed, "languages.current", 1, false) return theNewPed end end addCommandHandler("addfuelpoint", makePed)
-
i mean i cant get it to change color That Code At the end is RGB Code But the text is still white i has done it before
-
Well I Cant Get The Color To Work Here Is My Script if not (name) then outputChatBox("SYNTAX: /addfuelpoint name priceratio", thePlayer, 255, 194, 14) else This is a server-side script!
-
Lol Guys I Done All This Shit i have xampp a successful LOCAL rp server
-
I Know Its There Cuz I Created It, It Is There
-
Doing That Doesnt Work It Says The Table Dont Exist And I DOnt MEan Sqlite I Mean The SQL You Get With XAMPP
-
Well Im Tryin To Use A Command To Delete A SQL Table I Know I Can Delete THough PHP MyAdmin But This Is Incase Something Happens function delsql() executeSQLDelete("testtable") end addCommandHandler("deltable", delsql) The Script Is Server
-
why doesnt it work for me???????? when i log out they reset to 2 binds on 1 key i tried putting them into the config itself but mta just removed it
-
Why Cant I Bind 4 Things To 1 Key?
-
Is There No IDs For Them
-
Can Anyone Take Me To A Page Which Shows The Blip Marker Ids Like The Cylinder Marker And Stuff. NOT THE BLIPS FOR MAP!
-
Im Looking For A Resource That Deletes All Resources, So Like If Someone Stole A Script I Could Go On There Server And Type A Command And It would delete the resources or edit the resource script so they dont work. Is This Possible ?
-
done that before
-
Fixed
-
The Error Is unzipped\faction-system\s_faction_system.lua:1077:attempt to compare number with userdata s_faction_system http://pastebin.com/JPBk2f5F Was To Big To Fit In
-
Well I Cant Bind More Than One Bind To A Key And All My Friends Can Do It But I Cant, I Can Do I But Then When I Restart MTA I Lose It Can Someone Tell Me How To Fix This
-
micheal1230 killed diegofkda (Rape)
-
Well i have got the HTTP Server/web hosting thing, how do i put the files in do i got to rar them zip them or just put the http-client-files folder in there ?
-
How do i get this? is it free and will it speed up player download??