Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OnPlayerConnect am pus asa
- for(new i; i < sizeof(TurfInfo); ++i)
- {
- Turfs[i] = GangZoneCreateM(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
- }
- OnGameModeInit am pus asa
- mysql_function_query(g_iHandle, "SELECT * FROM `turfs`", true, "LoadTurfs", "");
- iar acesta este public-ul de loadturfs
- public LoadTurfs()
- {
- static
- rows,
- fields;
- cache_get_data(rows, fields, g_iHandle);
- for(new i = 1; i < rows; i ++) if (i < MAX_ZTURFS)
- {
- TurfInfo[i][zID] = cache_get_field_int(i, "ID");
- TurfInfo[i][zOwned] = cache_get_field_int(i, "Owned");
- TurfInfo[i][zTime] = cache_get_field_int(i, "Time");
- TurfInfo[i][zMinX] = cache_get_field_float(i, "MinX");
- TurfInfo[i][zMinY] = cache_get_field_float(i, "MinY");
- TurfInfo[i][zMaxX] = cache_get_field_float(i, "MaxX");
- TurfInfo[i][zMaxY] = cache_get_field_float(i, "MaxY");
- }
- printf( "Successfully Loaded [%d] Turfs", rows );
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement