Estуs son los ъnicos datos que conseguн en la Gamemode de mysql.
PHP код:
public OnGameModeInit()
{
AMXProtection();
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
import File("mysql.ini", host[16], user[24], database[12], password[32])
{
dbHandle = mysql_connect(host, user, database, password);
if(mysql_errno(dbHandle) != 0) printf("Non collegato dal database.");
}
mysql_log(LOG_ERROR | LOG_WARNING);
for(new a, as = sizeof(AntennasRadio); a < as; a++)
AntennasRadio[a][arObject] = CreateDynamicObject(3763, AntennasRadio[a][arX], AntennasRadio[a][arY], AntennasRadio[a][arZ], AntennasRadio[a][arRX], AntennasRadio[a][arRY], AntennasRadio[a][arRZ]);
for(new l, ls = sizeof(LicensesPoint); l < ls; l++)
Pickup_Create(ELEMENT_LICENSE, l, 1239, 23, LicensesPoint[l][licenseX], LicensesPoint[l][licenseY], LicensesPoint[l][licenseZ], 0, 0);
for(new c, cs = sizeof(FarmerZones); c < cs; c++)
FarmerAreas[c] = CreateDynamicRectangle(FarmerZones[c][0], FarmerZones[c][1], FarmerZones[c][2], FarmerZones[c][3]);
for(new f, fs = sizeof(FishingZones); f < fs; f++)
FishingAreas[f] = CreateDynamicRectangle(FishingZones[f][0], FishingZones[f][1], FishingZones[f][2], FishingZones[f][3]);
for(new j, js = sizeof(Jobs); j < js; j++)
{
Pickup_Create(ELEMENT_JOB, j, 1239, 23, Jobs[j][jobX], Jobs[j][jobY], Jobs[j][jobZ], 0, 0);
CreateDynamic3DTextLabel(Jobs[j][jobName], COLOR_WHITE, Jobs[j][jobX], Jobs[j][jobY], Jobs[j][jobZ]+0.4, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1);
}