SA-MP Forums Archive
Fuel Bugged - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fuel Bugged (/showthread.php?tid=197390)



Fuel Bugged - marinov - 08.12.2010

http://pastebin.com/grp4Qxv8


this is bugged, after it refuels the car sometimes it keeps sending me message: "Car successfully refilled!" like until I log off and wait a few seconds, and rejoin the server (Which sometimes is still bugged). Any fix PLEASE ??


PS: I don't remember who sent me this http://pastebin.com/grp4Qxv8


Re: Fuel Bugged - Biesmen - 08.12.2010

I don't get what you mean. It gives you the message "Car successfully refilled". When you log off and back on, it still gives that message?

First of all, remove all this stuff:
pawn Код:
RefillTimer = SetTimerEx("ReFill",2000,1,"i",playerid);
and replace it with:
pawn Код:
SetTimerEx("ReFill",2000,1,"i",playerid);
(remove RefilLTimer). Also remove New RefillTimer; above your script.

Do the same for FuelTimer. Remove 'FuelTimer ='. Also remove it at the top of your script.

Then, modify KillTimer(FuelTimer)(or something) into this:
pawn Код:
KillTimer(ReFill(playerid));
You do not have to 'say' what ReFill is. It's a waste of your memory.


So, use this code:
http://pastebin.com/FkbZcZCB


Re: Fuel Bugged - marinov - 08.12.2010

pawn Код:
C:\Users\Marino Varesio\Desktop\zombie outbreak\filterscripts\fuelsystem.pwn(43) : error 076: syntax error in the expression, or invalid function call
C:\Users\Marino Varesio\Desktop\zombie outbreak\filterscripts\fuelsystem.pwn(148) : warning 217: loose indentation
C:\Users\Marino Varesio\Desktop\zombie outbreak\filterscripts\fuelsystem.pwn(149) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: Fuel Bugged - Hal - 09.12.2010

Quote:
Originally Posted by marinov
Посмотреть сообщение
pawn Код:
C:\Users\Marino Varesio\Desktop\zombie outbreak\filterscripts\fuelsystem.pwn(43) : error 076: syntax error in the expression, or invalid function call
C:\Users\Marino Varesio\Desktop\zombie outbreak\filterscripts\fuelsystem.pwn(148) : warning 217: loose indentation
C:\Users\Marino Varesio\Desktop\zombie outbreak\filterscripts\fuelsystem.pwn(149) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Whats the line with the error? and you can easily fix those warning by indenting, or removing indentation.


Re: Fuel Bugged - Toreno - 09.12.2010

Fix your lines and try that one:
pawn Код:
KillTimer(ReFill);
It should work :]


Re: Fuel Bugged - Biesmen - 09.12.2010

Quote:
Originally Posted by EliranPesahov
Посмотреть сообщение
Fix your lines and try that one:
pawn Код:
KillTimer(ReFill);
It should work :]
Stop confusing him with posting this crap.
Ofcourse it won't work. He forwarded ReFill this way: forward ReFill(playerid);

Seems like I do have to define the timer.
Try this:
http://pastebin.com/2VsGgsBX

For the warning loose identation, go to line 149 (SetTimerEx("ReFill",2000,1,"i",playerid)
Then move this line back (backspace)