SA-MP Forums Archive
(HELP)What is bad on this Script? - 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: (HELP)What is bad on this Script? (/showthread.php?tid=269065)



(HELP)What is bad on this Script? - spaty2 - 14.07.2011

Quote:

}
else if(PlayerToPoint(20, i,292.0274,-36.0291,1001.5156))
{//Ammunation 1
GameTextForPlayer(i, "~r~Jailed for going to ammunation", 5000, 1);
SetPlayerInterior(i, 6);
PlayerInfo[i][pInt] = 6;
SetPlayerPos(i,264.6288,77.5742,1001.0391);
PlayerInfo[i][pJailTime] = 300;
PlayerInfo[i][pJailed] = 1;

If i get in, it doesnt send me in Jail.. why? please?


Re: (HELP)What is bad on this Script? - Toreno - 14.07.2011

Can you show more of it?


Re: (HELP)What is bad on this Script? - spaty2 - 14.07.2011

I can show like this only...
Quote:

{//Ammunation 1
GameTextForPlayer(i, "~r~Jailed for going to ammunation", 5000, 1);
SetPlayerInterior(i, 6);
PlayerInfo[i][pInt] = 6;
SetPlayerPos(i,264.6288,77.5742,1001.0391);
PlayerInfo[i][pJailTime] = 300;
PlayerInfo[i][pJailed] = 1;
}
else if(PlayerToPoint(20, i,308.2740,-141.2833,999.6016))
{//Ammunation 2
GameTextForPlayer(i, "~r~Jailed for going to ammunation", 5000, 1);
SetPlayerInterior(i, 6);
PlayerInfo[i][pInt] = 6;
SetPlayerPos(i,264.6288,77.5742,1001.0391);
PlayerInfo[i][pJailTime] = 300;
PlayerInfo[i][pJailed] = 1;
}
/*else if(PlayerToPoint(20, i,294.3212,-108.7869,1001.5156))
{//Ammunation 3 (small one's)
GameTextForPlayer(i, "~r~Jailed for going to ammunation", 5000, 1);
SetPlayerInterior(i, 6);
PlayerInfo[i][pInt] = 6;
SetPlayerPos(i,264.6288,77.5742,1001.0391);
PlayerInfo[i][pJailTime] = 300;
PlayerInfo[i][pJailed] = 1;
}*/
else if(PlayerToPoint(20, i,288.8592,-80.4535,1001.5156))
{//Ammunation 4 (small one's)
GameTextForPlayer(i, "~r~Jailed for going to ammunation", 5000, 1);
SetPlayerInterior(i, 6);
PlayerInfo[i][pInt] = 6;
SetPlayerPos(i,264.6288,77.5742,1001.0391);
PlayerInfo[i][pJailTime] = 300;
PlayerInfo[i][pJailed] = 1;
}
else if(PlayerToPoint(20, i,316.9583,-165.4707,999.6010))
{//Ammunation 5 (Unprotected)
GameTextForPlayer(i, "~r~Jailed for going to ammunation", 5000, 1);
SetPlayerInterior(i, 6);
PlayerInfo[i][pInt] = 6;
SetPlayerPos(i,264.6288,77.5742,1001.0391);
PlayerInfo[i][pJailTime] = 300;
PlayerInfo[i][pJailed] = 1;




Re: (HELP)What is bad on this Script? - linuxthefish - 14.07.2011

Your indentation, that's what's bad...


Re: (HELP)What is bad on this Script? - spaty2 - 14.07.2011

SOLVED, Thanks