nikitandroid
Ученик
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59253) : warning 213: tag mismatch
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59254) : warning 213: tag mismatch
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59255) : warning 213: tag mismatch
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59256) : warning 213: tag mismatch
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59275) : warning 202: number of arguments does not match definition
Строки
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59254) : warning 213: tag mismatch
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59255) : warning 213: tag mismatch
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59256) : warning 213: tag mismatch
C:\Users\Admin\Desktop\active rp\gamemodes\edit.pwn(59275) : warning 202: number of arguments does not match definition
Строки
@_LoadCamper(playerid);
@_LoadCamper(playerid)
{
if(cache_num_rows())
{
new
fmt_str[39 + (- 2 + MAX_PLAYER_NAME)],
camper_color,
Float: camper_pos_x,
Float: camper_pos_y,
Float: camper_pos_z,
Float: camper_pos_a
;
cache_get_field_content_int(0, "CamperPosX", camper_pos_x);
cache_get_field_content_int(0, "CamperPosY", camper_pos_y);
cache_get_field_content_int(0, "CamperPosZ", camper_pos_z);
cache_get_field_content_int(0, "CamperPosA", camper_pos_a);
/*cache_get_field_content(0, "CamperPosX", CamperInfo[fmt_str][c_camper_pos_x]);
cache_get_field_content_int(0, "CamperPosY", CamperInfo[fmt_str][c_camper_pos_y]);
cache_get_field_content_int(0, "CamperPosZ", CamperInfo[fmt_str][c_camper_pos_z]);
cache_get_field_content_int(0, "CamperPosA", CamperInfo[fmt_str][c_camper_pos_a]);*/
cache_get_field_content_int(0, "Color", camper_color);
new vehicleid =
AddStaticVehicleEx(MODEL_VEHICLE_CAMPER,
camper_pos_x,
camper_pos_y,
camper_pos_z,
camper_pos_a,
camper_color,
camper_color,
CAMPER_SPAWN
);
cache_get_field_content_int(0, "Owner", CamperInfo[vehicleid][c_owner], MAX_PLAYER_NAME);
cache_get_field_content_int(0, "ID", CamperInfo[vehicleid][c_id]);
cache_get_field_content_int(0, "Lock", CamperInfo[vehicleid][c_lock]);
format(fmt_str, sizeof(fmt_str),
"Владелец: %s\n{ffffff}Войти в домик - [H]",
CamperInfo[vehicleid][c_owner]
);
CamperInfo[vehicleid][c_camper_3d_text] = CreateDynamic3DTextLabel(
fmt_str,
COLOR_CAMPERS,
camper_pos_x,
camper_pos_y,
camper_pos_z,
10.0,
INVALID_PLAYER_ID,
vehicleid,
1
);
CamperInfo[vehicleid][c_camper_pos_x] = camper_pos_x;
CamperInfo[vehicleid][c_camper_pos_y] = camper_pos_y;
CamperInfo[vehicleid][c_camper_pos_z] = camper_pos_z;
CamperInfo[vehicleid][c_camper_pos_a] = camper_pos_a;
CamperInfo[vehicleid][c_camper_vehicle_id] = vehicleid;
SetVehicleCamperID(playerid, vehicleid);
}
}
@_LoadCamper(playerid)
{
if(cache_num_rows())
{
new
fmt_str[39 + (- 2 + MAX_PLAYER_NAME)],
camper_color,
Float: camper_pos_x,
Float: camper_pos_y,
Float: camper_pos_z,
Float: camper_pos_a
;
cache_get_field_content_int(0, "CamperPosX", camper_pos_x);
cache_get_field_content_int(0, "CamperPosY", camper_pos_y);
cache_get_field_content_int(0, "CamperPosZ", camper_pos_z);
cache_get_field_content_int(0, "CamperPosA", camper_pos_a);
/*cache_get_field_content(0, "CamperPosX", CamperInfo[fmt_str][c_camper_pos_x]);
cache_get_field_content_int(0, "CamperPosY", CamperInfo[fmt_str][c_camper_pos_y]);
cache_get_field_content_int(0, "CamperPosZ", CamperInfo[fmt_str][c_camper_pos_z]);
cache_get_field_content_int(0, "CamperPosA", CamperInfo[fmt_str][c_camper_pos_a]);*/
cache_get_field_content_int(0, "Color", camper_color);
new vehicleid =
AddStaticVehicleEx(MODEL_VEHICLE_CAMPER,
camper_pos_x,
camper_pos_y,
camper_pos_z,
camper_pos_a,
camper_color,
camper_color,
CAMPER_SPAWN
);
cache_get_field_content_int(0, "Owner", CamperInfo[vehicleid][c_owner], MAX_PLAYER_NAME);
cache_get_field_content_int(0, "ID", CamperInfo[vehicleid][c_id]);
cache_get_field_content_int(0, "Lock", CamperInfo[vehicleid][c_lock]);
format(fmt_str, sizeof(fmt_str),
"Владелец: %s\n{ffffff}Войти в домик - [H]",
CamperInfo[vehicleid][c_owner]
);
CamperInfo[vehicleid][c_camper_3d_text] = CreateDynamic3DTextLabel(
fmt_str,
COLOR_CAMPERS,
camper_pos_x,
camper_pos_y,
camper_pos_z,
10.0,
INVALID_PLAYER_ID,
vehicleid,
1
);
CamperInfo[vehicleid][c_camper_pos_x] = camper_pos_x;
CamperInfo[vehicleid][c_camper_pos_y] = camper_pos_y;
CamperInfo[vehicleid][c_camper_pos_z] = camper_pos_z;
CamperInfo[vehicleid][c_camper_pos_a] = camper_pos_a;
CamperInfo[vehicleid][c_camper_vehicle_id] = vehicleid;
SetVehicleCamperID(playerid, vehicleid);
}
}
