[Help] Driving School
#1

The script: I'm using Raven's RolePlay GM
Description about the problem: I have a problem about drivers license. If I want to get drivers license and type /buydriving I will get test with driving questions at the end if you answer true all of questions you will be teleported to driving school cars and get text: Get in the car and type /dtest. When you get in the car and type that you will get first checkpoint,last checkpoint will not be disabled and you can't get any license. You will get license if you are first who want to get driving license,but other people can't. Example: server is restarted now. I want to get license and I'm going to driving school. There I will get questions and driving test,because of that I'm first person which want to do it at the last checkpoint it will be okay,but later if someone else want to do it,that last checkpoint will not be disabled,that's a problem.
Part of the script: If You need tell me


Help me please
Reply
#2

Don't use Ravens Roleplay it is buggier than a Lousiana swap and was coded by monkeys.
Reply
#3

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Don't use Ravens Roleplay it is buggier than a Lousiana swap and was coded by monkeys.
I not need an advice about GM,I need help about this bug
Reply
#4

BUMP
Reply
#5

And do you want for us to give you the code like magic ? we don't care about your gamemode , noone will download razven roleplay just to test that bug,Anyway we care about the script , but we don't have the script cuz you didn't gave us the script so we can't help you.
Reply
#6

It isn't inside Raven's GM,than I did it


Код:
}
}
	if(IgracPolaze[playerid] == 1)
	{
	    new carid = GetPlayerVehicleID(playerid);
	    if(IsAPolaganjeVozilo(carid))
	    {
			if(CP[playerid] == 1000) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid);SetPlayerCheckpoint(playerid,555.8055,-1582.7268,15.9400,4.0); CP[playerid] = 1001; return 1;}
			else if(CP[playerid] == 1001) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid);SetPlayerCheckpoint(playerid,452.1725,-1575.4485,25.2337,4.0); CP[playerid] = 1002; return 1;}
			else if(CP[playerid] == 1002) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,404.4110,-1480.0077,31.0073,4.0); CP[playerid] = 1003; return 1;}
			else if(CP[playerid] == 1003) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,325.7561,-1571.5514,33.0360,4.0); CP[playerid] = 1004; return 1;}
			else if(CP[playerid] == 1004) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,258.7735,-1572.4921,32.9258,4.0); CP[playerid] = 1005; return 1;}
			else if(CP[playerid] == 1005) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,286.2873,-1502.7004,32.5583,4.0); CP[playerid] = 1006; return 1;}
			else if(CP[playerid] == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,192.0265,-1519.6936,12.5399,4.0); CP[playerid] = 1007; return 1;}
			else if(CP[playerid] == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,251.8208,-1438.5563,13.3708,4.0); CP[playerid] = 1008; return 1;}
			else if(CP[playerid] == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,474.7064,-1308.0428,15.2654,4.0); CP[playerid] = 1009; return 1;}
			else if(CP[playerid] == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,656.9050,-1202.3230,18.0067,4.0); CP[playerid] = 1010; return 1;}
			else if(CP[playerid] == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,753.5446,-1066.8289,23.6670,4.0); CP[playerid] = 1011; return 1;}
			else if(CP[playerid] == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,953.1033,-975.3172,38.6708,4.0); CP[playerid] = 1012; return 1;}
			else if(CP[playerid] == 1012) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,961.1972,-1039.6890,30.0189,4.0); CP[playerid] = 1013; return 1;}
			else if(CP[playerid] == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,940.5981,-1184.5752,19.5120,4.0); CP[playerid] = 1014; return 1;}
			else if(CP[playerid] == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,914.9889,-1365.1594,13.1355,4.0); CP[playerid] = 1015; return 1;}
			else if(CP[playerid] == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,916.3383,-1737.6366,13.3141,4.0); CP[playerid] = 1016; return 1;}
			else if(CP[playerid] == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,643.8130,-1731.2504,13.5770,4.0); CP[playerid] = 1017; return 1;}
			else if(CP[playerid] == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,639.2842,-1560.0924,15.2835,4.0); CP[playerid] = 1018; return 1;}
			else if(CP[playerid] == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,686.1772,-1548.1727,14.7817,4.0); CP[playerid] = 1019; SendClientMessage(playerid, COLOR_RED, "Na zadnjem CheckPointu kucajte /zavrsip"); ZavrsioP2[playerid] = 1; return 1;}
			else if(CP[playerid] == 1019)
			{
       			IgracPolaze[playerid] = 0;
		    	VoziloPolaze[playerid] = 0;
		    	new Float:Health; GetVehicleHealth(polaganjevozilo[playerid],Health);
		    	SetVehicleToRespawn(GetPlayerVehicleID(playerid));
	    		LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
				SafeRemovePlayerFromVehicle(playerid);
		    	SCM(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
		    	if(Health < 850) return SCM(playerid,COLOR_WHITE,"Pali ste na polaganju jer ste ostetili automobil");
	    		PlayerInfo[playerid][pCarLic] = 1;
	    		DisablePlayerCheckpoint(playerid);
			}
		}
Zavrsili ste polaganje - that means,succesfully finished driving test
Pali ste na polaganju jer ste ostetili automobil - that means,because of that you damaged your car,you can't get drivers license
Reply
#7

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Don't use Ravens Roleplay it is buggier than a Lousiana swap and was coded by monkeys.
I seriously just LOL'ed on this post. xD
Reply
#8

Quote:
Originally Posted by Pajser
Посмотреть сообщение
It isn't inside Raven's GM,than I did it


Код:
}
}
	if(IgracPolaze[playerid] == 1)
	{
	    new carid = GetPlayerVehicleID(playerid);
	    if(IsAPolaganjeVozilo(carid))
	    {
			if(CP[playerid] == 1000) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid);SetPlayerCheckpoint(playerid,555.8055,-1582.7268,15.9400,4.0); CP[playerid] = 1001; return 1;}
			else if(CP[playerid] == 1001) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid);SetPlayerCheckpoint(playerid,452.1725,-1575.4485,25.2337,4.0); CP[playerid] = 1002; return 1;}
			else if(CP[playerid] == 1002) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,404.4110,-1480.0077,31.0073,4.0); CP[playerid] = 1003; return 1;}
			else if(CP[playerid] == 1003) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,325.7561,-1571.5514,33.0360,4.0); CP[playerid] = 1004; return 1;}
			else if(CP[playerid] == 1004) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,258.7735,-1572.4921,32.9258,4.0); CP[playerid] = 1005; return 1;}
			else if(CP[playerid] == 1005) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,286.2873,-1502.7004,32.5583,4.0); CP[playerid] = 1006; return 1;}
			else if(CP[playerid] == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,192.0265,-1519.6936,12.5399,4.0); CP[playerid] = 1007; return 1;}
			else if(CP[playerid] == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,251.8208,-1438.5563,13.3708,4.0); CP[playerid] = 1008; return 1;}
			else if(CP[playerid] == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,474.7064,-1308.0428,15.2654,4.0); CP[playerid] = 1009; return 1;}
			else if(CP[playerid] == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,656.9050,-1202.3230,18.0067,4.0); CP[playerid] = 1010; return 1;}
			else if(CP[playerid] == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,753.5446,-1066.8289,23.6670,4.0); CP[playerid] = 1011; return 1;}
			else if(CP[playerid] == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,953.1033,-975.3172,38.6708,4.0); CP[playerid] = 1012; return 1;}
			else if(CP[playerid] == 1012) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,961.1972,-1039.6890,30.0189,4.0); CP[playerid] = 1013; return 1;}
			else if(CP[playerid] == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,940.5981,-1184.5752,19.5120,4.0); CP[playerid] = 1014; return 1;}
			else if(CP[playerid] == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,914.9889,-1365.1594,13.1355,4.0); CP[playerid] = 1015; return 1;}
			else if(CP[playerid] == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,916.3383,-1737.6366,13.3141,4.0); CP[playerid] = 1016; return 1;}
			else if(CP[playerid] == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,643.8130,-1731.2504,13.5770,4.0); CP[playerid] = 1017; return 1;}
			else if(CP[playerid] == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,639.2842,-1560.0924,15.2835,4.0); CP[playerid] = 1018; return 1;}
			else if(CP[playerid] == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,686.1772,-1548.1727,14.7817,4.0); CP[playerid] = 1019; SendClientMessage(playerid, COLOR_RED, "Na zadnjem CheckPointu kucajte /zavrsip"); ZavrsioP2[playerid] = 1; return 1;}
			else if(CP[playerid] == 1019)
			{
       			IgracPolaze[playerid] = 0;
		    	VoziloPolaze[playerid] = 0;
		    	new Float:Health; GetVehicleHealth(polaganjevozilo[playerid],Health);
		    	SetVehicleToRespawn(GetPlayerVehicleID(playerid));
	    		LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
				SafeRemovePlayerFromVehicle(playerid);
		    	SCM(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
		    	if(Health < 850) return SCM(playerid,COLOR_WHITE,"Pali ste na polaganju jer ste ostetili automobil");
	    		PlayerInfo[playerid][pCarLic] = 1;
	    		DisablePlayerCheckpoint(playerid);
                        return 1;
			}
		}
Zavrsili ste polaganje - that means,succesfully finished driving test
Pali ste na polaganju jer ste ostetili automobil - that means,because of that you damaged your car,you can't get drivers license
Not sure if it will help, all I did was add return 1; to the last CP, sometimes my cmd wouldn't respond cause I was missing return, so I hope that it's the same case here.
Reply
#9

Quote:
Originally Posted by Blast3r
Посмотреть сообщение
Not sure if it will help, all I did was add return 1; to the last CP, sometimes my cmd wouldn't respond cause I was missing return, so I hope that it's the same case here.
Yes maybe,I will try it,but other jobs etc.. working fine without "return"
Reply
#10

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Don't use Ravens Roleplay it is buggier than a Lousiana swap and was coded by monkeys.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)