07.10.2015, 13:43
Ohh yeah thanks alot, i have already tried with if (PlayerInfo[playerid][pCarkey4] != 255) {
And that didnt Work, so i was thinking that something else was wrong... im stupid
Thanks alot for helping me
I also got this one working
And that didnt Work, so i was thinking that something else was wrong... im stupid
Thanks alot for helping me
I also got this one working
pawn Код:
if (strcmp(x_job, "list", true) == 0) {
for (new i = 0; i < sizeof(CarInfo); i++) {
if (PlayerInfo[playerid][pCarkey] == SCRIPT_CARS)
if (PlayerInfo[playerid][pCarkey2] == SCRIPT_CARS)
if (PlayerInfo[playerid][pCarkey3] == SCRIPT_CARS)
if (PlayerInfo[playerid][pCarkey4] == SCRIPT_CARS)
if (PlayerInfo[playerid][pCarkey5] == SCRIPT_CARS) {
SendClientMessage(playerid, COLOR_GREY, "No vehicles found.");
return 1;
}
new carkey = PlayerInfo[playerid][pCarkey],
carkey2 = PlayerInfo[playerid][pCarkey2],
carkey3 = PlayerInfo[playerid][pCarkey3],
carkey4 = PlayerInfo[playerid][pCarkey4],
carkey5 = PlayerInfo[playerid][pCarkey5];
if (PlayerInfo[playerid][pCarkey] != SCRIPT_CARS) {
format(string, sizeof(string), ""COL_GREY"1. {FF6347}%s"COL_GREY" Value[%d] Color 1[%d] Color 2[%d] Locked[%d] Impounded[%d] Impound Price[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock], CarInfo[carkey][cImpounded], CarInfo[carkey][cImpoundedPrice]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if (PlayerInfo[playerid][pCarkey2] != SCRIPT_CARS) {
format(string, sizeof(string), ""COL_GREY"2. {FF6347}%s"COL_GREY" Value[%d] Color 1[%d] Color 2[%d] Locked[%d] Impounded[%d] Impound Price[%d]", CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock], CarInfo[carkey2][cImpounded], CarInfo[carkey2][cImpoundedPrice]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if (PlayerInfo[playerid][pCarkey3] != SCRIPT_CARS) {
format(string, sizeof(string), ""COL_GREY"3. {FF6347}%s"COL_GREY" Value[%d] Color 1[%d] Color 2[%d] Locked[%d] Impounded[%d] Impound Price[%d]", CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock], CarInfo[carkey3][cImpounded], CarInfo[carkey3][cImpoundedPrice]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if (PlayerInfo[playerid][pCarkey4] != SCRIPT_CARS) {
format(string, sizeof(string), ""COL_GREY"4. {FF6347}%s"COL_GREY" Value[%d] Color 1[%d] Color 2[%d] Locked[%d] Impounded[%d] Impound Price[%d]", CarInfo[carkey4][cDescription], CarInfo[carkey4][cValue], CarInfo[carkey4][cColorOne], CarInfo[carkey4][cColorTwo], CarInfo[carkey4][cLock], CarInfo[carkey4][cImpounded], CarInfo[carkey4][cImpoundedPrice]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if (PlayerInfo[playerid][pCarkey5] != SCRIPT_CARS) {
format(string, sizeof(string), ""COL_GREY"5. {FF6347}%s"COL_GREY" Value[%d] Color 1[%d] Color 2[%d] Locked[%d] Impounded[%d] Impound Price[%d]", CarInfo[carkey5][cDescription], CarInfo[carkey5][cValue], CarInfo[carkey5][cColorOne], CarInfo[carkey5][cColorTwo], CarInfo[carkey5][cLock], CarInfo[carkey5][cImpounded], CarInfo[carkey5][cImpoundedPrice]);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}
}