Arrest command doesn't work
#8

Quote:
Originally Posted by lulo356
Посмотреть сообщение
The Arrest/prisontime will be not setted in the MYSQL after using this command can you maybe explain me why?
Because in this segment of code, nothing does anything with MySQL.

It should however be saving something, around the StatsSaving function usually.


Otherwise the code could go in this area

Код:
else
	{
		ResetPlayerWeapons(ID);
		Player[ID][Arrest] = 1;
		Player[ID][PrisonTime] = time * 60;
		SetPlayerSpecialAction(ID, SPECIAL_ACTION_NONE);
		format(string, sizeof(string), "> You've arrested %s for %d days at San Andreas Prison.", RPName(ID), time);
		SendClientMessage(playerid, SPECIALORANGE, string);
		format(string, sizeof(string), "> %s has arrested you for %d days at San Andreas Prison.", RPName(playerid), time);
		SendClientMessage(ID, SPECIALORANGE, string);
	}
It should have something around there, to send the info to the MySQL. Around the last 3 lines is the best, if you can't find a StatsSaving function.
Reply


Messages In This Thread
Arrest command doesn't work - by lulo356 - 21.01.2016, 00:52
Re: Arrest command doesn't work - by Sew_Sumi - 21.01.2016, 00:57
Re: Arrest command doesn't work - by lulo356 - 21.01.2016, 01:18
Re: Arrest command doesn't work - by Sew_Sumi - 21.01.2016, 02:44
Re: Arrest command doesn't work - by Threshold - 21.01.2016, 02:50
Re: Arrest command doesn't work - by Weponz - 21.01.2016, 05:49
Re: Arrest command doesn't work - by lulo356 - 21.01.2016, 13:40
Re: Arrest command doesn't work - by Sew_Sumi - 21.01.2016, 22:40
Re: Arrest command doesn't work - by lulo356 - 21.01.2016, 23:58
Re: Arrest command doesn't work - by Sew_Sumi - 22.01.2016, 05:17

Forum Jump:


Users browsing this thread: 1 Guest(s)