Script problem - 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: Script problem (
/showthread.php?tid=329332)
Script problem -
Bosnian - 28.03.2012
Yo, I have a script problem, Everytime when somebody shoots somebody (1 bullet is enough) The server restarts and has like a 5 minute rollback, does anybody know what can be the problem?
Always when somebody dies, a blood stain stays at that place.. And when somebody gets shot 1 time it doesnt come, maybe it should come but doesnt come and it rollbacks...
Re: Script problem -
sniperwars - 28.03.2012
Hi Bosnian,
That sounds really weird. Could you send me your script via private message and I'll take
a look.
- Sean aka Sniperwars
Re: Script problem -
Reklez - 28.03.2012
Do you have any code OnPlayerTakeDamage that if player shoots the server will restart?
Could be something like Gamemode Script Messup
Quote:
Originally Posted by sniperwars
Hi Bosnian,
That sounds really weird. Could you send me your script via private message and I'll take
a look.
- Sean aka Sniperwars
|
via PM? no need to its public helping service not private helping service
AW: Script problem -
Bosnian - 28.03.2012
I cant lookt right now, a friend of me only has acces to the host, script and server_logs..
But later when he gives me everything I will post it, are the server_logs needed too?
Re: Script problem -
antonio112 - 28.03.2012
Also, you might take a look at
callback, since, you said that only when he shoots, not necessary when he damages somebody.
AW: Script problem -
Bosnian - 28.03.2012
The weird thing is, As soon as a couple of guns fire, nvm if 1 gun 2 bullets or anyhing, the serve rollbacks
AW: Script problem -
Bosnian - 28.03.2012
Код:
if(((oldkeys & KEY_FIRE) && !(newkeys & KEY_FIRE)) || ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE)) || (newkeys & KEY_FIRE)) {
Does that have something to do with it?
Re: AW: Script problem -
[ABK]Antonio - 28.03.2012
Quote:
Originally Posted by Bosnian
Код:
if(((oldkeys & KEY_FIRE) && !(newkeys & KEY_FIRE)) || ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE)) || (newkeys & KEY_FIRE)) {
Does that have something to do with it?
|
Well...there's no reason for that many checks in that if statement...The last one in it is enough
AW: Re: AW: Script problem -
Bosnian - 29.03.2012
Quote:
Originally Posted by [ABK]Antonio
Well...there's no reason for that many checks in that if statement...The last one in it is enough
|
errmm.. What do you mean? Is that the bug?
Re: Script problem -
RicaNiel - 29.03.2012
Quote:
Originally Posted by Reklez
Do you have any code OnPlayerTakeDamage that if player shoots the server will restart?
Could be something like Gamemode Script Messup
via PM? no need to its public helping service not private helping service
|
Correct +rep ka hehehehe