SA-MP Forums Archive
Robbery bug help - 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)
+--- Thread: Robbery bug help (/showthread.php?tid=339050)



Robbery bug help - StinkMoney - 02.05.2012

As i enter the server, for example as an civilian, i can rob anywhere. aswell it spam picture is bellow.


Rep + to the one helps


Re: Robbery bug help - Kitten - 02.05.2012

Show the code,

also make sure you're not running on a timer with true statement or using OnPlayerUpdate.


Re: Robbery bug help - StinkMoney - 02.05.2012

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Show the code,

also make sure you're not running on a timer with true statement or using OnPlayerUpdate.
It has a timer as this one
Код:
SetTimer("OnPlayerUpdateEx", 500, true);
Код:
function RobberyComplete(playerid)
{
    new string[128];
	if(RobberyData[playerid][RobberyTime] >= 1)
	{
	    format(string, sizeof(string), "robbery time: %i", RobberyData[playerid][RobberyTime]);
	    GameTextForPlayer(playerid, string, 4000, 3);
	    RobberyData[playerid][RobberyTime] --;
Код:
RobberyData[playerid][RobberyTime] = robberyTime;
		RobberyData[playerid][RobberyTimer] = SetTimerEx("RobberyComplete", 1000, true, "i", playerid);
Hope you mean those. Due im newbie


Re: Robbery bug help - Kitten - 02.05.2012

pawn Код:
RobberyData[playerid][RobberyTimer] = SetTimerEx("RobberyComplete", 1000, true, "i", playerid);
To

pawn Код:
RobberyData[playerid][RobberyTimer] = SetTimerEx("RobberyComplete", 1000, false, "i", playerid);



Re: Robbery bug help - StinkMoney - 02.05.2012

Thanks!
As i put it up to VH, Updated the server it shows unknown gamemode.


Re: Robbery bug help - Kitten - 02.05.2012

Quote:
Originally Posted by StinkMoney
Посмотреть сообщение
Thanks!
As i put it up to VH, Updated the server it shows unknown gamemode.
Make sure your running all plugins running used by the script or Make sure your running all plugins running used by the script or, check if your plugins are updated.


Re: Robbery bug help - StinkMoney - 02.05.2012

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Make sure your running all plugins running used by the script or Make sure your running all plugins running used by the script or, check if your plugins are updated.
Those all are running got any other solution?
Are updated.


Re: Robbery bug help - Kitten - 02.05.2012

Show server.log


Re: Robbery bug help - StinkMoney - 02.05.2012

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Show server.log
Код:
[01:59:03] Number of vehicle models: 0
[01:59:03] Script[gamemodes/newcnr.amx]: Run time error 19: "File or function is not found"

[01:59:03]   Loaded 1 filterscripts.
[01:59:03]  ..::: Plugin Free Radio System v1.5 by Xtreme_playa :::..
[01:59:03]   Loading filterscript 'radio.amx'...
[01:59:03] ---------------
[01:59:03] Filterscripts
[01:59:03] 
[01:59:03] 
[01:59:03]  Loaded: samp.ban
[01:59:03] --------
[01:59:03] Ban list
[01:59:03] 

[01:59:03]  Loaded 3 plugins.
[01:59:03]   Loaded.

*** Streamer Plugin v2.5.2 R2 by Incognito loaded ***

[01:59:03] 
[01:59:03]  Loading plugin: streamer.so
[01:59:03]   Loaded.

[01:59:03]  ===============================

[01:59:03]    0.3d-R2 500 Players "dnee"

[01:59:03]    © 2009 Alex "******" Cole

[01:59:03]       sscanf plugin loaded.     

[01:59:03]  ===============================

[01:59:03] 
[01:59:03]  Loading plugin: sscanf.so
[01:59:03]   Loaded.
[01:59:03]  
[01:59:03]  ==================
[01:59:03]  
[01:59:03]   Whirlpool loaded
[01:59:03]  
[01:59:03]  ==================
[01:59:03]  
[01:59:03]  Loading plugin: Whirlpool.so
[01:59:03] --------------
[01:59:03] Server Plugins
[01:59:03] 
[01:59:03] maxplayers = 50  (int)
[01:59:03] password = ""  (string)



Re: Robbery bug help - Kitten - 02.05.2012

Do you have this,

pawn Код:
main()
{

}
?