Y_Ini writes any file = server crash
#10

Code:
YCMD:tunecar(playerid, params[], help)
{
	#pragma unused params
	#pragma unused help
	new playerstate = GetPlayerState(playerid);
	if(playerstate == PLAYER_STATE_DRIVER)
	{
        if(!IsPlayerInRangeOfPoint(playerid,5.0,1375.5538,-1889.4302,13.7439)) return Error(playerid, "You are not in the tune shop !");
		if(GetPlayerVehicleID(playerid) != VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta]][vID] && GetPlayerVehicleID(playerid) != VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta2]][vID]) return Error(playerid, "You can tune just your private vehicle!");
		new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
		switch(pveh)
		{
			case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
			533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
			426,547,405,409,550,566,406,540,421,529,431,438,437,420,525,552,416,433,427,490,528,
			407,544,470,598,596,599,601,428,499,609,524,578,486,573,455,588,403,514,423,
			414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
			483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558:
			{
				ShowPlayerDialog(playerid, 1338, DIALOG_STYLE_LIST, "Tune car menu","Paint Jobs\nColors\nExhausts\nFront Bumper\nRear Bumper\nRoof\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nNext page", "Select", "Exit");
				return SendClientMessage(playerid, 0xFFFF00AA, "[.::LK~INFO::.] Choose...");
			}
			default: return Error(playerid, "You can not tune this vehicle!");
		}
	}
	else return Error(playerid, "You must be driver!");
	return 1;
}
I have not tested it in windows but Iam going to do it now...
Reply


Messages In This Thread
Y_Ini writes any file = server crash - by TokicMajstor - 17.03.2019, 21:11
Re: Y_Ini writes any file = server crash - by SymonClash - 17.03.2019, 21:19
Re: Y_Ini writes any file = server crash - by SymonClash - 17.03.2019, 22:06
Re: Y_Ini writes any file = server crash - by TokicMajstor - 17.03.2019, 22:17
Re: Y_Ini writes any file = server crash - by SymonClash - 17.03.2019, 22:21
Re: Y_Ini writes any file = server crash - by TokicMajstor - 17.03.2019, 23:19
Re: Y_Ini writes any file = server crash - by raydx - 18.03.2019, 00:33
Re: Y_Ini writes any file = server crash - by SymonClash - 18.03.2019, 09:49
Re: Y_Ini writes any file = server crash - by Verc - 18.03.2019, 11:09
Re: Y_Ini writes any file = server crash - by TokicMajstor - 18.03.2019, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)