SA-MP Forums Archive
Server 99% ready, serious bug! - 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: Server 99% ready, serious bug! (/showthread.php?tid=78531)



Server 99% ready, serious bug! - KeyWay - 20.05.2009

1. ID 0 cant see ANYONE, everyone is invisible to him. He can see only other players text.
2. If you arent Cop or any Family member, and try to go in Cop/Faction car, you get ejected and get message "You are not Cop/Family member!"
3. What is wrong with this command i made? When im cop and make /lspd it says "You are not cop!"

<Script removed (Solved)>

4. When i /quitjob my contract time grows every time minute, if i make/quitjob again.. it will never drop.. I tryed to see maybe its timer mistake, but no luck...


Re: Server 99% ready, serious bug! - Gappy - 21.05.2009

pawn Код:
if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
Should be

pawn Код:
if (PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 1)



Re: Server 99% ready, serious bug! - KeyWay - 21.05.2009

Quote:
Originally Posted by Gappy
pawn Код:
if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
Should be

pawn Код:
if (PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 1)
Still not working...

I forgot another problem also, when i make /quitjob it says you havent waited 5hours blaa blaa but the time is growing all the time i make /quitjob...



Re: Server 99% ready, serious bug! - Gappy - 21.05.2009

Quote:
Originally Posted by KeyWay
Quote:
Originally Posted by Gappy
pawn Код:
if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
Should be

pawn Код:
if (PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 1)
Still not working...

I forgot another problem also, when i make /quitjob it says you havent waited 5hours blaa blaa but the time is growing all the time i make /quitjob...
Sorry, it should be this

pawn Код:
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)



Re: Server 99% ready, serious bug! - KeyWay - 21.05.2009

Quote:
Originally Posted by Gappy
Quote:
Originally Posted by KeyWay
Quote:
Originally Posted by Gappy
pawn Код:
if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
Should be

pawn Код:
if (PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 1)
Still not working...

I forgot another problem also, when i make /quitjob it says you havent waited 5hours blaa blaa but the time is growing all the time i make /quitjob...
Sorry, it should be this

pawn Код:
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
Yeaah, really big thanks to you !
One less problem


Re: Server 99% ready, serious bug! - Backwardsman97 - 21.05.2009

Why do you put IsPlayerConnected in your command. It is a very useless check. The player cannot type a command if he is not connected.


Re: Server 99% ready, serious bug! - KeyWay - 21.05.2009

I dont know actually, ive seen that in many other commands so i used it in this too, i take other commands example and learn from them. But ill keep that in mind Most important that it works now.