Fuel Bugged
#1

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
Reply
#2

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
Reply
#3

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.
Reply
#4

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.
Reply
#5

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

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)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)