26.11.2018, 16:01
When I'm in my personal car it goes but
when in another car it does not work..
Image:
and on the server looks: SERVER: Unknown command.
My Code:
when in another car it does not work..
Image:
and on the server looks: SERVER: Unknown command.
My Code:
Код HTML:
stock CarOwner3(playerid, vehicleid) { if( CarInfo[PlayerInfo[playerid][pCarPers][0]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][0]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][1]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][1]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][2]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][2]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][3]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][3]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][4]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][4]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][5]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][5]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][6]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][6]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][7]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][7]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][8]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][8]][cSpawn]) { return 1; } else if( CarInfo[PlayerInfo[playerid][pCarPers][9]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][9]][cSpawn]) { return 1; } return 0; } CMD:park(playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not in your personal vehicle!"); new getcarid = GetPlayerVehicleID(playerid); if(IsPlayerConnected(playerid)) { if(CarOwner3(playerid, getcarid)) // checking whether the player is in the personal car { PersonalCars(playerid, 2, getcarid); // In personal vehicle } else { SCM(playerid, -1, "[Personal Car's]: You are not in your personal vehicle!"); } } return 1; }