Jump to content

Bogdan's

Membru
  • Posts

    162
  • Joined

  • Last visited

Community Answers

  1. Bogdan's's post in Problema /v was marked as the answer   
    Da,stocheaza comanda urmatoare totul:
    new vehid; vehid = GetPlayerVehicleID(playerid); if (strcmp(cmd, "/mycars", true) == 0) { if(IsPlayerConnected(playerid)) { new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if (PlayerInfo[playerid][pPcarkey] != -1) { format(string, sizeof(string), "1| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]); SendClientMessage(playerid, COLOR_GRAD5,string); } if (PlayerInfo[playerid][pPcarkey2] != -1) { format(string, sizeof(string), "2| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d]", CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock]); SendClientMessage(playerid, COLOR_GRAD5,string); } if (PlayerInfo[playerid][pPcarkey3] != -1) { format(string, sizeof(string), "3| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d]", CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock]); SendClientMessage(playerid, COLOR_GRAD5,string); } } return 1; }  
    Multumesc frumos de ajutor!Am rezolvat.
    Comanda corecta:
    if(strcmp(cmd, "/veh", true) == 0) { new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; new BigString15[1900]; if(PlayerInfo[playerid][pPcarkey] > 1) { format(string, sizeof(string), "{FFFFFF}1. %s\n", CarInfo[carkey][cDescription]); strcat(BigString15, string); } if(PlayerInfo[playerid][pPcarkey2] > 1) { format(string, sizeof(string), "{FFFFFF}2. %s\n", CarInfo[carkey2][cDescription]); strcat(BigString15, string); } if(PlayerInfo[playerid][pPcarkey3] > 1) { format(string, sizeof(string), "{FFFFFF}3. %s\n", CarInfo[carkey3][cDescription]); strcat(BigString15, string); } ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicle Control", BigString15, "Ok",""); return 1; }  
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.