Help with /getjob.
#7

Quote:
Originally Posted by Sascha
Посмотреть сообщение
Problem probably happens on the mysql loading I suppose..
Show us how you load the data
Код:
public OnJobsLoad(jobid)
{
	new string5[256], string3[256];
	for(new i = 0; i < cache_num_rows(); i++)
	{
		jInfo[i][jID] = cache_get_field_content_int(i, "jobID");
		cache_get_field_content(i,"jobName",jInfo[i][jName],mysql,256);
		jInfo[i][jPickup] = cache_get_field_content_int(i, "jobPickup");
		jInfo[i][jPosX] = cache_get_field_content_float(i, "jobPosX");
		jInfo[i][jPosY] = cache_get_field_content_float(i, "jobPosY");
		jInfo[i][jPosZ] = cache_get_field_content_float(i, "jobPosZ");
		jInfo[i][jType] = cache_get_field_content_int(i, "jobType");
		jCount++;
		CreatePickup(jInfo[i][jPickup], 1, jInfo[i][jPosX],jInfo[i][jPosY],jInfo[i][jPosZ], 0);
		format(string3, sizeof(string3), "{0095E6}Job ID: {FFFFFF}%d\n{0095E6}Job Name: {FFFFFF}%s\n{0095E6}Use /getjob", jInfo[i][jID], jInfo[i][jName]);
		Create3DTextLabel(string3, 0x008080FF, jInfo[i][jPosX],jInfo[i][jPosY],jInfo[i][jPosZ], 8.0, 0, 0);
	}
	format(string5, sizeof(string5), " %d jobs loaded from database.", jCount);
	print(string5);
	return 1;
}
Reply


Messages In This Thread
Help with /getjob. - by danielpalade - 05.02.2016, 21:54
Re: Help with /getjob. - by Sascha - 05.02.2016, 21:56
Re: Help with /getjob. - by TopShooter - 05.02.2016, 22:02
Re: Help with /getjob. - by ikey07 - 05.02.2016, 22:16
Re: Help with /getjob. - by danielpalade - 05.02.2016, 22:18
Re: Help with /getjob. - by danielpalade - 05.02.2016, 22:21
Re: Help with /getjob. - by danielpalade - 05.02.2016, 22:26
Re: Help with /getjob. - by TopShooter - 05.02.2016, 22:39
Re: Help with /getjob. - by danielpalade - 06.02.2016, 01:03
Re: Help with /getjob. - by danielpalade - 06.02.2016, 15:44

Forum Jump:


Users browsing this thread: 2 Guest(s)