Checkpoint


Započeo Sef, Mart 08, 2018, 21:04:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Sef

*

Problem(error/warning): Ovako uzeo sam opet iz Muminog moda njegov sistem ilegalnih poslova e sad il posao br. 2 ima ono vozilo da se uzme i da se odvede negdje medjutim ono prvi put dobro radi ali sledeci put kad je vise igraca trazi da 2 igraca budu u checkpointu da bi se promijenio checkpoint na lokaciju gdje treba otici
Dio skripte:
else if(PokrenutIllJob == 2) //RandomIllJob2_Vehicle
		{
			if(GetPlayerVehicleID(playerid) == RandomIllJob2_Vehicle && GetPlayerState(playerid) == PL_ST_DRIVER)
    		{
    		
       			if(IsPlayerInRangeOfPoint(playerid, 10.0, -1910.6711,-1672.2129,23.0156))
			    {
			    	for(new i = 0; i <= GetPlayerPoolSize(); i++)
					{
					    if(i != playerid)
					    {
							if(RadimIllJob[i] == true)
							{
							    m_DisablePlayerCheckpoint(i);
							    SCM(playerid, -1, "{FF0000}ILLEGAL JOB: (( {FFFFFF}ViÅ¡e srece drugi put. {FF0000}))");
							}
						}
					}
    				UradjenDioIlegalnogPosla = 0, PokrenutIllJob = 0;
			    	RadimIllJob[playerid] = false;
					KillTimer(Timer_IllJob2VehPos);
			   		m_DisablePlayerCheckpoint(playerid);
			   		new string[125];
			   		format(string, sizeof(string), "{FF0000}ILLEGAL JOB: (( {FFFFFF}%s je izvrÅ¡io ilegalni posao i zaradio $15.000 + 2500XP {FF0000}))", GetNameEx(playerid));
			   		SCMTA(-1, string);
			   		m_GivePlayerMoney(playerid, 15000);
			   		SetMyExperience(playerid, 2500);
			   		DestroyCar(RandomIllJob2_Vehicle);
			    	for(new i = 0; i <= GetPlayerPoolSize(); i++)
					{
					    if(i != playerid)
					    {
							if(RadimIllJob[i] == true)
							{
							    m_DisablePlayerCheckpoint(i);
							    SCM(playerid, -1, "{FF0000}ILLEGAL JOB: (( {FFFFFF}ViÅ¡e srece drugi put. {FF0000}))");
							}
						}
					}
				}
				else
				{
					SCM(playerid, -1, "{FF0000}ILLEGAL JOB: (( {FFFFFF}Niste vozac potrebnog vozila. {FF0000}))");
					return 1;
				}
			}
		}
		return 1;
 }
Znaci kad probam da udjem drugi put kad se pokrene job i kada udje jedan igrac u auto u kojem je checkpoint kaze "Niste vozac potrebnog vozila"
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
//

Slika/video ingame problema(obavezno ako je ingame problem): //
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”

Sef

*

Reseno lock!
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”