Jump to content

Shoby.

Membru
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by Shoby.

  1. Deci, cand tastez o comanda gresita (ex /asfmwiowem) sa nu imi mai apara in chat "SERVER: Unknown command"
  2. As vrea ca atunci cand scriu o comanda gresita sa nu mai apara eroarea de la numele topicului. E deja stresanta. Poate sa ma ajute cineva? Multam
  3. Aceiasi eroare :| "Acest vehicul nu livreaza produse"..
  4. 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"...
  5. Nu te supara, sunt amator in asa ceva. Ce sunt alea "stringuri"? Si unde anume le gasesc? Si functia "OnGameModeInit" o gasesc in GM nu?
  6. As dori sa stiu si eu ce trebuie sa modific pe la scriptul de l-am luat. Uitati-va cum apare numele la bizuri, detalii nu apar deloc. As dori sa sterg si textul ala din stanga jos si sa pun altceva. Ma poate ajuta cineva?! Am tot incercat sa bag si masini normale, si private, si nu reusesc nimic. Daca imi puteti da si mie un tutorial explicat ca la copii de clasa 1-a ar fi super. Multam fain. SS : http://postimage.org/image/5imvpcziz/ , http://postimage.org/image/4ue16f0t7/ , http://postimage.org/image/j23pv2di3/
×
×
  • 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.