-
Posts
2,608 -
Joined
-
Last visited
Everything posted by 12p
-
exacly. If you need help with scripting go to Scripting Section. Please don't ask us how to do it, write some code and if it doesn't work, investigate some and if still doesn't work, THEN you go there. We are busy scripters huh.
-
I'm not an expert in SQL, I just started to use it >.< But this could work: executeSQLCreateTable("TheTableName", "player TEXT, playerid INTEGER, posX INTEGER, posY INTEGER, posZ INTEGER") You can do anything you want with that table using the following functions: executeSQLUpdate executeSQLInsert executeSQLSelect executeSQLQuery Click on every function name to visit wiki documentation and learn.
-
Yes, Zango, I'm quite sure he just wants to refresh resource files, etc. after modifying some script. But it can be done just by restarting the resource lol.
-
I meant YOU USING THE VOTEMODE COMMAND. I already know you changed that setting -.-
-
If I'm right, that resource wasn't made to change objects rotation. So you should just don't use that resource and make your own doors.
-
No download link yet, lol.
-
If I'm right you modified some things and you didn't give me the last code version that you have. It doesn't work.
-
Tell me what you wanna do with the command (how to activate it)
-
No way to delete lol. Just ask to close the topic
-
To make a "Race Freeroam" map, you have to: 1. NOT MAKE ANY CHECKPOINT. 2. Map Settings ==> Gamemode Settings ==> Race ==> respawn ==> timelimit 3. Map Settings ==> Gamemode Settings ==> Race ==> ("timelimit" or something related) ==> "0"?
-
MTA Main Menu ==> Settings ==> Video ==> Resolutions: BLA x BLA x 32 CHECK WELL, I SAID x32, NOT x16 ON THE RESOLUTION LOL
-
You are a very intelligent mapper huh =)
-
Please, DONT DOUBLE REPLY, Ok? Just edit your posts, no need to bump it -.- Wait me, I'll check the video, and I will edit this same post. EDIT: Weird. Uncompress "votemanager" this way (LOL, my PC is in spanish): Then delete the original ZIP. And try to start it once more (if you can, record what you do on MTA).
-
No need to refresh a resource when isn't running, because when you start it, it gets refreshed -.-
-
use it client-side and with an event. for example, onClientMarkerHit ==> addCommandHandler.
-
no, because restarting the resource makes the job. (It is stopResource => timer => startResource).
-
1. Get the resources again (check on Google for "mtasa-resources"). 2. Get Camstasia Studio or Hypercam. 3. Record your PC screen. 4. Do everything you did. 5. Upload to youtube. 6. Show us here. Yes, it's complicated, I know. But try it, maybe you're doing something wrong.
-
1. Don't double your replies. It's so awful. 2. Maybe nobody replies because nobody knows the answer or nobody cares (there are sooo many questions on MTA Paradise -.-) 3. Why don't you investigate on "inventory" resource (i guess that's the name) or just leave the resource? Because you don't know how to script, you shouldn't use that MTA Paradise thing, it's too common and stupid to use it.
-
Doesn't work... lol.
-
ok... volk, you aren't right. That event hasn't a player as source, because I don't want to, and it setTimer(triggerClientEvent,1500,1,"onClientHighScoresUpdate",source,getHighScores()) What source? LOL there is no source -.- addEvent ( "onClientHighScoresUpdate", true ) -- I did this in my source code, just I forgot to add it to the code I passed here. addEventHandler ("onClientHighScoresUpdate",getLocalPlayer(), --As the event source ISNT A PLAYER, then that event won't work, ever. function (scores)
-
Learn how to search... I just found it in 2 min -.-
-
you forgot to restart resources maybe?
-
Thanks to all scripters that have patience to help all noobish scripters, like me OK, I'm trying to create my own "Top Scores" system with GUI. Everythings works but 1 thing... Rows aren't added. I don't know what is happening, no debug errors, even from mine. The thing I noticed with custom debugging is that normally when a row is added, there should be a "+1 row" message; that one doesn't shows, anytime. SERVER SIDE: function updateSQLRowForPlayer(p) local name = getPlayerName(p) local acc = getPlayerAccount (p) if not isGuestAccount (acc) then local kills = getAccountData (acc,"zombieKills") local level = getAccountData (acc,"rankLvl") local test = executeSQLSelect ("levelling","player_name","player_name = '"..name.."'") if test == false then local acc = getPlayerAccount (p) if executeSQLInsert ("levelling","'"..name.."', "..kills..", "..level) then outputDebugString ("SQL Database has created a row for "..name.."!") else outputDebugString ("SQL Database got error when creating a row for "..name.."!") end else if executeSQLUpdate ("levelling","player_name = '"..name.."', kills = '"..kills.."', level = '"..level.."'", "player_name = '"..name.."'") then outputDebugString ("SQL Database has updated "..name.." row!") else outputDebugString ("SQL Database got error when updating "..name.." row!") end end end end function getHighScores () local highScores = executeSQLQuery ("SELECT player_name, kills, level FROM levelling") if highScores then return highScores else outputDebugString ("Error when trying to get high scores!") return false end end setTimer(triggerClientEvent,1500,1,"onClientHighScoresUpdate",getRootElement(),getHighScores()) CLIENT SIDE: addEventHandler ("onClientHighScoresUpdate",getRootElement(), function (scores) if type(scores) == "table" then for i,s in ipairs (scores) do outputDebugString ("+1 Row!") --THIS DOESNT APPEAR! WHAT THE...? IF "scores" IS A TABLE, WHY DOESNT GET SHOWED ANY DEBUG MESSAGE LIKE THIS? local row = guiGridListAddRow (scoresGrid) guiGridListSetItemText (scoresGrid,row,1,s[1],false,false) guiGridListSetItemText (scoresGrid,row,2,tostring(s[2]),false,true) guiGridListSetItemText (scoresGrid,row,3,tostring(s[3]),false,true) end else outputDebugString ("Problem with the high scores table, looks like isn't processed!") --THIS DOESNT APPEARS TOO! end end) Why aren't rows added? Maybe tables can't be synced with events?
