Am si eu o problema asemanatoare. Am mai cautat pe net si tot nu am reusit sa-i dau de cap. Cand scriu /dl am ID-urile de la masinile de la job trucker de la 171 pana la 176 (vazusem pe alte forumuri ca numerele alea de la tmpcar trebuie sa coincida cu id-ul masinii in joc) [pawn] if(strcmp(cmd, "/load", true) == 0) { if(IsPlayerConnected(playerid)) { new tmpcar = GetPlayerVehicleID(playerid); if(tmpcar < 171 || tmpcar > 174) { GameTextForPlayer(playerid, "~r~Nu sunteti într-un camion de livrare", 5000, 1); return 1; } format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); } return 1; } if(strcmp(cmd, "/buyprods", true) == 0) { if(IsPlayerConnected(playerid)) { new tmpcar = GetPlayerVehicleID(playerid); new compcost = 50; if(PlayerToPoint(60.0, playerid, 2781.6907,-2417.5854,13.8078)) { if(IsATruck(tmpcar)) { if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity]) { new amount; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "Tasteaza: /buyprods [amount]"); return 1; } amount = strval(tmp); if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "Nu pot cumpara mai putin de 1 Produs sau mai mult de 500!"); return 1; } new check= PlayerHaul[tmpcar][pLoad] + amount; if(check > PlayerHaul[tmpcar][pCapasity]) { format(string, sizeof(string), " You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]); SendClientMessage(playerid, COLOR_GREY, string); return 1; } new cost = amount*compcost; if(GetPlayerMoney(playerid) >= cost) { PlayerHaul[tmpcar][pLoad] += amount; format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); format(string, sizeof(string), "Ai cumparat %d Produse pentru $%d.", amount,cost); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); GivePlayerMoney(playerid,-cost); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); return 1; } else { format(string, sizeof(string), "You cant afford %d Products at $%d !", amount,cost); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); return 1; } } else { format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); return 1; } } else { SendClientMessage(playerid, TEAM_GROVE_COLOR, "Acest vehicul nu livreaza produse."); return 1; } } } return 1; } if(strcmp(cmd, "/sellprods", true) == 0) { new cashmade; new tmpcar; if(IsPlayerConnected(playerid)) { tmpcar = GetPlayerVehicleID(playerid); if(!IsATruck(tmpcar)) { GameTextForPlayer(playerid, "~r~Tu nu te aflii intr-o masina de vanzare.", 5000, 1); return 1; } if(PlayerHaul[tmpcar][pLoad] == 0) { GameTextForPlayer(playerid, "~r~Camionul este gol , dute si incarca-l.", 5000, 1); format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); return 1; } for(new i = 0; i < sizeof(BizzInfo); i++) { if (PlayerToPoint(10, playerid,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ])) { //printf("Found House :%d",i); for(new l = PlayerHaul[tmpcar][pLoad]; l > 0; l--) { if(BizzInfo[bProducts] == BizzInfo[bMaxProducts]) { GameTextForPlayer(playerid, "~r~Bizul este plin", 5000, 1); format(string, sizeof(string), "Bani primiti $%d.", cashmade); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); return 1; } if(BizzInfo[bPriceProd] > BizzInfo[bTill]) { GameTextForPlayer(playerid, "~r~We Cant Afford The Deal", 5000, 1); format(string, sizeof(string), "Bani primiti $%d.", cashmade); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); return 1; } PlayerHaul[tmpcar][pLoad]--; BizzInfo[bProducts]++; cashmade = cashmade+BizzInfo[bPriceProd]; ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,BizzInfo[bPriceProd]); BizzInfo[bTill] -= BizzInfo[bPriceProd]; if(PlayerHaul[tmpcar][pLoad] == 0) { GameTextForPlayer(playerid, "~r~Camionul este gol , dute si incarca-l.", 5000, 1); format(string, sizeof(string), "Bani primiti $%d.", cashmade); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); return 1; } } OnPropUpdate(); return 1; } } }[/pawn] Acestea sunt comenzile /load /buyprods & /sellprods. Singura eroare la mine este "Acest vehicul nu livreaza produse"...