Jump to content

Help!!


loler

Recommended Posts

Posted

Hey i made a buy panel with 2 thinks in + but it didnt works

I dont make it public

Now what i need is to know whats the haystacks id

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted

Haystack...

If you're using MTA SA Map editor, just search "hay", if you find it, look (or scroll to the side) and see the object ID.

Unfortunately, sorry, I forgot the ID.

XX3 is gone. This is my new name. :3

Posted

Ok but when i go to MTA mapeditor it gives:Error downloading requestet files.Failed to initialize the download.

Can anyone help me????? please

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted (edited)

Client side:

--Closed

Server side:

--Closed

Edited by Guest

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted

When i write in console debugscript 3 it didnt gives errors

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted

Ok i editet it a bit and now it works

btw when i press a server or when i go to my server it gives the same error

Why?

the bug was i was using source not player

local x,y,z = getElementPosition( player )

i didnt let it more public

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted
Ok but when i go to MTA mapeditor it gives:Error downloading requestet files.Failed to initialize the download.

Can anyone help me????? please

Make sure you ZIPPED it (The map editor files)

Posted

Lol, I can't have a chance to look at the code :P

(Also don't make posts like that, edit it instead of making a new post. You did a quadruple post or 4x posts)

Why you keep it secret? I never hide my script.

XX3 is gone. This is my new name. :3

Posted
Ok but when i go to MTA mapeditor it gives:Error downloading requestet files.Failed to initialize the download.

Can anyone help me????? please

Make sure you ZIPPED it (The map editor files)

On ALL SERVERS gives so

and im SURE that i zipped it

and XX3 i hide it cuz than i make another work btw when you want it PM me andi will give it to you

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted

i found the bug

say me somethink

why should i keep it to be public??

that means that i make another work.So now who want it (it is working) must PM me

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted

one thing..

are "loler" just another account of kevin11/COOKIE2 or his "friends" ?

Could any mod confirm/decline it (register IP subnet)?

- Asking WEIRD questions

- Editing posts in strange way (after someone's reply)

- Multi-posting

Probably he created new acc just to hide that it's he again, and the code he has is stolen from somewhere

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted (edited)

Nah, some peoples may have similar personalities, you know. :D

He was just not perfect at English.

Just don't be so sensitive for now, varez. Just watch him for now if you feel he's suspicious.

@loler: You know, it's better to show everyone your scripts, because some peoples here are ready to help you. Just don't keep it secret.

Edited by Guest

XX3 is gone. This is my new name. :3

Posted (edited)

Nope , i am another person from MTA not COOKIE/kevin11

So now i have a another problem:

When i click on haystack or on ramp or on barrel it appears in console:

[16:40:33] ERROR: Client triggered serverside event barrel, but event is not added serverside

Here is my script:

Client side:

GUIEditor_Window = {}
GUIEditor_Button = {}
 
GUIEditor_Window[1] = guiCreateWindow(161,102,390,342,"Buy window by loler",false)
GUIEditor_Button[1] = guiCreateButton(31,25,90,18,"Buy nitro",false,GUIEditor_Window[1])
GUIEditor_Button[2] = guiCreateButton(30,46,91,17,"Buy repair",false,GUIEditor_Window[1])
GUIEditor_Button[3] = guiCreateButton(30,67,91,17,"Buy haystack",false,GUIEditor_Window[1])
GUIEditor_Button[4] = guiCreateButton(30,86,91,17,"Buy barrel",false,GUIEditor_Window[1])
GUIEditor_Button[5] = guiCreateButton(30,100,91,17,"Buy ramp",false,GUIEditor_Window[1])
guiSetVisible(GUIEditor_Window[1], false)
 
function guiToggleVisible ( )
 
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then           
guiSetVisible(GUIEditor_Window[1], false)
showCursor ( false )
else 
guiSetVisible(GUIEditor_Window[1], true)
showCursor ( true )
end
end
bindKey ( "M", "down", guiToggleVisible )
 
function fixv()
triggerServerEvent("fixRequest", getLocalPlayer())
end
addEventHandler("onClientGUIClick",GUIEditor_Button[2],fixv,false)
 
function nitro()
triggerServerEvent("nitro", getLocalPlayer())
end
addEventHandler("onClientGUIClick",GUIEditor_Button[1],nitro,false)
 
function haystack()
triggerServerEvent("haystack", getLocalPlayer())
end
addEventHandler("onClientGUIClick",GUIEditor_Button[3],haystack,false)
 
function barrel()
triggerServerEvent("barrel", getLocalPlayer())
end
addEventHandler("onClientGUIClick",GUIEditor_Button[4],barrel,false)
function ramp()
triggerServerEvent("ramp", getLocalPlayer())
end
addEventHandler("onClientGUIClick",GUIEditor_Button[5],barrel,false)

Server side:

addEvent("nitro", true)
addEventHandler("nitro", getRootElement(),
function()
if isPedInVehicle(source) then
if ( getPlayerMoney (source) >= 7000 ) then
takePlayerMoney(source, 7000)
addVehicleUpgrade(getPedOccupiedVehicle(source),1010)
outputChatBox("Nitro Successfully added", source, 255, 255, 0, true)
else
outputChatBox("Not enough money.", source, 255, 0, 0, true)
end     
else
outputChatBox("You are not in a vehicle", source, 255, 0, 0, true)
end
end
)
 
addEvent("fixRequest", true)
addEventHandler("fixRequest", getRootElement(),
function()
if isPedInVehicle(source) then
if ( getPlayerMoney (source) >= 20000 ) then
takePlayerMoney(source, 20000)
fixVehicle(getPedOccupiedVehicle(source))
outputChatBox("Vehicle Successfully Fixed", source, 255, 255, 0, true)
else
outputChatBox("Not enough money.", source, 255, 0, 0, true)
end     
else
outputChatBox("You are not in a vehicle", source, 255, 0, 0, true)
end
end
)
 
 addEvent("haystack", true)
addEventHandler("haystack", getRootElement(),
function()
local x,y,z = getElementPosition( player )
if isPedInVehicle(source) then
if ( getPlayerMoney (source) >= 99999 ) then
takePlayerMoney(source, 99999)
createObject ( 3374 , x , y , z )
outputChatBox("Haystack Successfully planted", source, 255, 255, 0, true)
else
outputChatBox("Not enough money.", source, 255, 0, 0, true)
end     
else
outputChatBox("You are not in a vehicle", source, 255, 0, 0, true)
end
end
)
 
addEvent("barrel", true) 
addEventHandler("barrel", getRootElement(),
function()
local x,y,z = getElementPosition( player )
if isPedInVehicle(source) then
if ( getPlayerMoney (source) >= 100000 ) then
takePlayerMoney(source, 100000)
createObject ( 1225 , x , y , z )
outputChatBox("Barrel Successfully planted", source, 255, 255, 0, true)
else
outputChatBox("Not enough money.", source, 255, 0, 0, true)
end     
else
outputChatBox("You are not in a vehicle", source, 255, 0, 0, true)
end
end
)
 addEvent ("ramp" , true)
addEventHandler("ramp", getRootElement(),
function()
local x,y,z = getElementPosition( player )
if isPedInVehicle(source) then
if ( getPlayerMoney (source) >= 100000 ) then
takePlayerMoney(source, 100000)
createObject ( 1632 , x + 5 , y , z )
outputChatBox("Ramp Successfully planted", source, 255, 255, 0, true)
else
outputChatBox("Not enough money.", source, 255, 0, 0, true)
end     
else
outputChatBox("You are not in a vehicle", source, 255, 0, 0, true)
end
end
)

Edited by Guest

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted

you forgot about addEvent for few custom events.. First two are ok, rest do not have addEvent

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

Thank you but now it gives :

[18:06:48] WARNING: server.lua: Bad argument @ 'getElementPosition' - Line: 56

[18:06:48] WARNING: server.lua: Bad argument @ 'createObject' - Line: 60

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Posted
one thing..

are "loler" just another account of kevin11/COOKIE2 or his "friends" ?

Could any mod confirm/decline it (register IP subnet)?

- Asking WEIRD questions

- Editing posts in strange way (after someone's reply)

- Multi-posting

Probably he created new acc just to hide that it's he again, and the code he has is stolen from somewhere

youre fucking retard u know that?? i dont steal :twisted:

Posted

Can't you just calm your presumably maximum 11 year old ass down a notch or 50, and then shut up unless you know what you're talking about. (Although I guess that means you won't have any further use for your keyboard whatsoever...)

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted

had your birthday already this year? Happy bday then, you are 12 now ;D

Sorry for OT. I had to :P

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

Can anyone help me?

When i want to join to a server it gives:

Error downloading requested files.Failed to initialize download.

Can anyone help me?? please :D

:glasses2::bazooka::bazooka::onfire::onfire::onfire::onfire::onfire:

M T A

Note:SAMP SUCKS BADLY!!!

Note: People in fire are SAMP

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...