Jump to content

cr3azy

Membru
  • Posts

    43
  • Joined

  • Last visited

    Never

Everything posted by cr3azy

  1. new PlayerHaul[500][pHaul];
  2. am mare nevoie de ajutor.... am comanda asta de /buyprods if(strcmp(cmd, "/buyprods", true) == 0) { if(IsPlayerConnected(playerid)) { new tmpcar = GetPlayerVehicleID(playerid); new compcost = 50; if(PlayerToPoint(60.0, playerid, -78.9067,-1130.7458,0.6489)) { if(IsATruck(tmpcar)) { if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity]) { new amount; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]"); return 1; } amount = strval(tmp); if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "Can't buy less then 1 Product or more then 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(PlayerInfo[playerid][pCash] >= cost) { PlayerHaul[tmpcar][pLoad] += amount; format(string, sizeof(string), "Products: %d/500.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); format(string, sizeof(string), "You bought %d Products for %s.", amount,cost); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-cost; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); return 1; } else { format(string, sizeof(string), "You cant afford %d Products at %s !", amount,cost); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); return 1; } } else { format(string, sizeof(string), "Products: %d/500.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); return 1; } } else { SendClientMessage(playerid, TEAM_GROVE_COLOR, "This Vehicle does not deliver Products."); return 1; } } } return 1; } dar cand dau de ex.: /buyprods 500 imi apare products 0/0 am si if(IsATruck(newcar)) { format(string, sizeof(string), "Products: %d/500", PlayerHaul[403][pLoad],PlayerHaul[403][pCapasity]); SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string); SendClientMessage(playerid, COLOR_WHITE, "INFO: You can deliver Products to Businesses."); SendClientMessage(playerid, COLOR_WHITE, "INFO: Commands are /load /buyprods /sellprods"); }
  3. C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3106) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3110) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3122) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3126) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3130) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3134) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3138) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3142) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3146) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3158) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3162) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3166) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3170) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3174) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3186) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3190) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3194) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3206) : error 004: function "PlayerToPoint" is not implemented imi apare asa knd am bagat /withdraw if(strcmp(cmd, "/withdraw", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(25.0,playerid,498.0127,-1475.5543,19.0361) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /withdraw [amount]"); format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo[playerid][pAccount]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; }
  4. if(strcmp(cmd, "/buyprods", true) == 0) { if(IsPlayerConnected(playerid)) { new tmpcar = GetPlayerVehicleID(playerid); new compcost = 50; if(PlayerToPoint(60.0, playerid, -78.9067,-1130.7458,0.6489))//2787.8,-2436.3,13.7 { if(IsATruck(tmpcar)) { if(IsTrailerAttachedToVehicle(tmpcar)) { if(PlayerHaul[GetVehicleTrailer(tmpcar)][pLoad] < PlayerHaul[GetVehicleTrailer(tmpcar)][pCapasity]) { new amount; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]"); return 1; } amount = strval(tmp); if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, " Can't buy less then 1 Product or more then 500 !"); return 1; } new check= PlayerHaul[GetVehicleTrailer(tmpcar)][pLoad] + amount; if(check > PlayerHaul[GetVehicleTrailer(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[GetVehicleTrailer(tmpcar)][pLoad] += amount; format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[GetVehicleTrailer(tmpcar)][pLoad],PlayerHaul[GetVehicleTrailer(tmpcar)][pCapasity]); SendClientMessage(playerid, COLOR_GREEN, string); format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost); SendClientMessage(playerid, COLOR_GREEN, 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, COLOR_GREEN, string); return 1; } } else { format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[GetVehicleTrailer(tmpcar)][pLoad],PlayerHaul[GetVehicleTrailer(tmpcar)][pCapasity]); SendClientMessage(playerid, COLOR_GREEN, string); return 1; } } else SendClientMessage(playerid, COLOR_GRAD1, " * Trebuie sa-ti cuplezi mai intai remorca"); } else { SendClientMessage(playerid, COLOR_GRAD1, "This Vehicle does not deliver Products."); return 1; } } } return 1; } nu merge deloc ... nu apare nimic... (
  5. cr3azy

    bug la /dveh

    if(dialogid==DIALOGDVEH) { if(response) { switch(listitem) { case 0: { if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1) { new info[128]; format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); ShowPlayerDialog(playerid,DIALOGVMODEL,DIALOG_STYLE_LIST,"Change vehicle model",info,"Enter","Close"); } if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1) { new info[128]; format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); ShowPlayerDialog(playerid,DIALOGVMODEL,DIALOG_STYLE_LIST,"Change vehicle model",info,"Enter","Close"); } } case 1: { if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1) { new info[128]; format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); ShowPlayerDialog(playerid,DIALOGVCOLOR,DIALOG_STYLE_LIST,"Change vehicle colors",info,"Enter","Close"); } if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1) { new info[128]; format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); ShowPlayerDialog(playerid,DIALOGVCOLOR,DIALOG_STYLE_LIST,"Change vehicle colors",info,"Enter","Close"); } } case 2: { if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1) { new info[128]; format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); ShowPlayerDialog(playerid,DIALOGVPOSITION,DIALOG_STYLE_LIST,"Save the position vehicle ",info,"Enter","Close"); } if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1) { new info[128]; format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); ShowPlayerDialog(playerid,DIALOGVPOSITION,DIALOG_STYLE_LIST,"Save the position vehicle ",info,"Enter","Close"); } } case 3: { if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1) { new info[128]; format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); ShowPlayerDialog(playerid,DIALOGVFIX,DIALOG_STYLE_LIST,"Respawn the vehicle",info,"Enter","Close"); } if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1) { new info[128]; format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); ShowPlayerDialog(playerid,DIALOGVFIX,DIALOG_STYLE_LIST,"Respawn the vehicle",info,"Enter","Close"); } } case 4: { if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1) { new info[128]; format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); ShowPlayerDialog(playerid,DIALOGVTOW,DIALOG_STYLE_LIST,"Tow the vehicle",info,"Enter","Close"); } if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1) { new info[128]; format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); ShowPlayerDialog(playerid,DIALOGVTOW,DIALOG_STYLE_LIST,"Tow the vehicle",info,"Enter","Close"); } } } } } if(dialogid==DIALOGVMODEL) { if(response) { switch(listitem) { case 0: { if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1) { new tittle[128]; new carkey = PlayerInfo[playerid][pPcarkey]; format(tittle,128,"%s", CarInfo[carkey][cDescription]); ShowPlayerDialog(playerid, DIALOGVMODEL+1,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close"); } else SendClientMessage(playerid,COLOR_GREY, " Trebuie sa aveti minim 2 masini ca sa schimbati modelul primei masini (/donatie)"); } case 1: { new tittle[128]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; format(tittle,128,"%s", CarInfo[carkey2][cDescription]); ShowPlayerDialog(playerid, DIALOGVMODEL+2,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close"); } } } } if(dialogid==DIALOGVMODEL+1) { if(response) { if(strlen(inputtext)) { new model; model = strval(inputtext); if(model < 400 && model > 611) { SendClientMessage(playerid, COLOR_WHITE, " Id-ul modelului trebuie sa fie cuprins intre 400 si 611"); new tittle[128]; new carkey = PlayerInfo[playerid][pPcarkey]; format(tittle,128,"%s", CarInfo[carkey][cDescription]); ShowPlayerDialog(playerid, DIALOGVMODEL+1,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close"); return 1; } else if(!NotModel(model)) { CarInfo[PlayerInfo[playerid][pPcarkey]][cModel]=model; format(string, sizeof(string), " [%s]: {3D9AD4}New vehicle model saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); SendClientMessage(playerid, COLOR_YELLOW, string); format(CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription], 32, "%s",vehName[model-400]); OnPropUpdate(); SavePlayerData(playerid); } else { new tittle[128]; new carkey= PlayerInfo[playerid][pPcarkey]; format(tittle,128,"%s", CarInfo[carkey][cDescription]); ShowPlayerDialog(playerid, DIALOGVMODEL+1,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close"); SendClientMessage(playerid, COLOR_GREY, " Acest model este interzis !"); } } } } if(dialogid==DIALOGVMODEL+2) { if(response) { if(strlen(inputtext)) { new model; model = strval(inputtext); if(model < 400 && model > 611) { SendClientMessage(playerid, COLOR_WHITE, " Id-ul modelului trebuie sa fie cuprins intre 400 si 611"); new tittle[128]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; format(tittle,128,"%s", CarInfo[carkey2][cDescription]); ShowPlayerDialog(playerid, DIALOGVMODEL+2,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close"); } else if(!NotModel(model)) { format(string, sizeof(string), " [%s]: {3D9AD4}New vehicle model saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); SendClientMessage(playerid, COLOR_YELLOW, string); CarInfo[PlayerInfo[playerid][pPcarkey2]][cModel]=model; format(CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription], 32, "%s",vehName[model-400]); OnPropUpdate(); SavePlayerData(playerid); } else { new tittle[128]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; format(tittle,128,"%s", CarInfo[carkey2][cDescription]); ShowPlayerDialog(playerid, DIALOGVMODEL+2,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close"); SendClientMessage(playerid, COLOR_GREY, " Acest model este interzis !"); } } } } if(dialogid==DIALOGVCOLOR) { if(response) { switch(listitem) { case 0: { new tittle[128]; new carkey = PlayerInfo[playerid][pPcarkey]; format(tittle,128,"%s", CarInfo[carkey][cDescription]); ShowPlayerDialog(playerid,DIALOGVCOLOR+1,DIALOG_STYLE_LIST,tittle,"First color\nSecond color","Enter","Close"); } case 1: { new tittle[128]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; format(tittle,128,"%s", CarInfo[carkey2][cDescription]); ShowPlayerDialog(playerid,DIALOGVCOLOR+2,DIALOG_STYLE_LIST,tittle,"First color\nSecond color","Enter","Close"); } } } } if(dialogid==DIALOGVCOLOR+1) { if(response) { switch(listitem) { case 0: { ShowPlayerDialog(playerid,DIALOGVCOLOR+3, DIALOG_STYLE_INPUT,"First color", "Type in box id of first color:","Manage","Close"); } case 1: { ShowPlayerDialog(playerid,DIALOGVCOLOR+4, DIALOG_STYLE_INPUT,"Second color", "Scrie in casuta id-ul la de-a doua culorea\n Exemple: '252' (Verde)","Manage","Close"); } } } } if(dialogid==DIALOGVCOLOR+2) { if(response) { switch(listitem) { case 0: { ShowPlayerDialog(playerid,DIALOGVCOLOR+5, DIALOG_STYLE_INPUT,"First color", "Type in box id of first color:","Manage","Close"); } case 1: { ShowPlayerDialog(playerid,DIALOGVCOLOR+6, DIALOG_STYLE_INPUT,"Second color", "Type in box id of second color:","Manage","Close"); } } } } if(dialogid==DIALOGVCOLOR+3) { if(response) { if(strlen(inputtext)) { new color; color = strval(inputtext); if(color < 1 && color > 252) { SendClientMessage(playerid, COLOR_WHITE, " Wrong Color ID"); ShowPlayerDialog(playerid,DIALOGVCOLOR+3, DIALOG_STYLE_INPUT,"First color", "Type in box id of first color:","Manage","Close"); } else { CarInfo[PlayerInfo[playerid][pPcarkey]][cColorOne]=color; format(string, sizeof(string), " [%s]: {3D9AD4}New primary vehicle color id saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); SendClientMessage(playerid, COLOR_YELLOW, string); } OnPropUpdate(); SavePlayerData(playerid); } } } if(dialogid==DIALOGVCOLOR+4) { if(response) { if(strlen(inputtext)) { new color; color = strval(inputtext); if(color < 0 && color > 252) { SendClientMessage(playerid, COLOR_WHITE, " Wrong Color ID"); ShowPlayerDialog(playerid,DIALOGVCOLOR+4, DIALOG_STYLE_INPUT,"Second color", "Type in box id of second color:","Manage","Close"); } else { CarInfo[PlayerInfo[playerid][pPcarkey]][cColorTwo]=color; format(string, sizeof(string), " [%s]: {3D9AD4}New secondary vehicle color id saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); SendClientMessage(playerid, COLOR_YELLOW, string); } OnPropUpdate(); SavePlayerData(playerid); } } } if(dialogid==DIALOGVCOLOR+5) { if(response) { if(strlen(inputtext)) { new color; color = strval(inputtext); if(color < 0 && color > 252) { SendClientMessage(playerid, COLOR_WHITE, " Wrong Color ID"); ShowPlayerDialog(playerid,DIALOGVCOLOR+5, DIALOG_STYLE_INPUT,"First color", "Type in box id of first color:","Manage","Close"); } CarInfo[PlayerInfo[playerid][pPcarkey2]][cColorOne]=color; format(string, sizeof(string), " [%s]: {3D9AD4}New primary vehicle color id saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); SendClientMessage(playerid, COLOR_YELLOW, string); OnPropUpdate(); SavePlayerData(playerid); } } } if(dialogid==DIALOGVCOLOR+6) { if(response) { if(strlen(inputtext)) { new color; color = strval(inputtext); if(color < 1 && color > 252) { SendClientMessage(playerid, COLOR_WHITE, " Wrong Color ID"); ShowPlayerDialog(playerid,DIALOGVCOLOR+6, DIALOG_STYLE_INPUT,"Second color", "Type in box id of second color:","Manage","Close"); } CarInfo[PlayerInfo[playerid][pPcarkey2]][cColorTwo]=color; format(string, sizeof(string), " [%s]: {3D9AD4}New primary vehicle color id saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); SendClientMessage(playerid, COLOR_YELLOW, string); OnPropUpdate(); SavePlayerData(playerid); } } } if(dialogid==DIALOGVPOSITION) { if(response) { switch(listitem) { case 0: { new Float:x,Float:y,Float:z,Float:a; if(!IsPlayerInAnyVehicle(playerid)) { GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,a); CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx] = x; CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy] = y; CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz] = z; CarInfo[PlayerInfo[playerid][pPcarkey]][cAngle] = a; } else { GetVehiclePos(vehid,x,y,z); GetVehicleZAngle(vehid,a); CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx] = x; CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy] = y; CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz] = z; CarInfo[PlayerInfo[playerid][pPcarkey]][cAngle] = a; } format(string, sizeof(string), " [%s]: {3D9AD4}New position saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]); SendClientMessage(playerid, COLOR_YELLOW, string); OnPropUpdate(); SavePlayerData(playerid); } case 1: { new Float:x,Float:y,Float:z,Float:a; if(!IsPlayerInAnyVehicle(playerid)) { GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,a); CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationx] = x; CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationy] = y; CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationz] = z; CarInfo[PlayerInfo[playerid][pPcarkey2]][cAngle] = a; } else { GetVehiclePos(vehid,x,y,z); GetVehicleZAngle(vehid,a); CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationx] = x; CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationy] = y; CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationz] = z; CarInfo[PlayerInfo[playerid][pPcarkey2]][cAngle] = a; } format(string, sizeof(string), " [%s]: {3D9AD4}New position saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]); SendClientMessage(playerid, COLOR_YELLOW, string); OnPropUpdate(); SavePlayerData(playerid); } } } } if(dialogid==DIALOGVFIX) { if(response) { switch(listitem) { case 0: { if(GetPlayerMoney(playerid) > 1000) { if(!IsPlayerInAnyVehicle(playerid)) { if(SBizzInfo[8][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } GameTextForPlayer(playerid, "~w~Donater vehicle ~n~~g~respawned ~n~~r~-1000$", 3000, 1); SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey]); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SBizzInfo[8][sbTill] += 1000;//towcar buisness ExtortionSBiz(8, 1000); SBizzInfo[8][sbProducts]--; GivePlayerMoney(playerid, -1000); } else GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1); } else GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1); } case 1: { if(GetPlayerMoney(playerid) > 1000) { if(!IsPlayerInAnyVehicle(playerid)) { if(SBizzInfo[8][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } GameTextForPlayer(playerid, "~w~Donater vehicle ~n~~g~respawned ~n~~r~-1000$", 3000, 1); SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey2]); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SBizzInfo[8][sbTill] += 1000;//towcar buisness ExtortionSBiz(8, 1000); SBizzInfo[8][sbProducts]--; GivePlayerMoney(playerid, -1000); } else GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1); } else GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1); } } } } if(dialogid==DIALOGVTOW) { if(response) { switch(listitem) { case 0: { if(GetPlayerMoney(playerid) > 1000) { if(!IsPlayerInAnyVehicle(playerid)) { if(SBizzInfo[8][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } // new Float:health; GetVehicleHealth(PlayerInfo[playerid][pPcarkey], health); new panels,doors,lights,tires; GetVehicleDamageStatus(PlayerInfo[playerid][pPcarkey],panels,doors,lights,tires); // GameTextForPlayer(playerid, "~w~Donater vehicle ~n~~g~towed ~n~~r~-1000$", 3000, 1); SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey]); UpdateVehicleDamageStatus(PlayerInfo[playerid][pPcarkey], panels, doors, lights, tires); SetVehicleHealth(PlayerInfo[playerid][pPcarkey],health); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SBizzInfo[8][sbTill] += 1000;//towcar buisness ExtortionSBiz(8, 1000); SBizzInfo[8][sbProducts]--; GivePlayerMoney(playerid, -1000); } else GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1); } else GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1); } case 1: { if(GetPlayerMoney(playerid) > 1000) { if(!IsPlayerInAnyVehicle(playerid)) { if(SBizzInfo[8][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } // new Float:health; GetVehicleHealth(PlayerInfo[playerid][pPcarkey2], health); new panels,doors,lights,tires; GetVehicleDamageStatus(PlayerInfo[playerid][pPcarkey2],panels,doors,lights,tires); // GameTextForPlayer(playerid, "~w~Donater vehicle ~n~~g~towed ~n~~r~-1000$", 3000, 1); SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey2]); UpdateVehicleDamageStatus(PlayerInfo[playerid][pPcarkey2], panels, doors, lights, tires); SetVehicleHealth(PlayerInfo[playerid][pPcarkey2],health); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SBizzInfo[8][sbTill] += 1000;//towcar buisness ExtortionSBiz(8, 1000); SBizzInfo[8][sbProducts]--; GivePlayerMoney(playerid, -1000); } else GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1); } else GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1); } } } } if(dialogid==DIALOGIDSETOWNER) { if(response) { new dokee[MAX_PLAYER_NAME]; GetPlayerName(playerid,dokee,13); if(IsPlayerInVehicle(playerid,idcar)) { if(IsAnOwnableCar(idcar)) { if(strlen(inputtext)) { giveplayerid = ReturnUser(inputtext); if(PlayerInfo[giveplayerid][pPcarkey] == -1) { } else if(PlayerInfo[giveplayerid][pPcarkey2] == -1) { } else { SendClientMessage(playerid, COLOR_GREY, " That player allready have 2 cars"); return 1; } if(CarInfo[idcar][cOwned]==1) { SendClientMessage(playerid, COLOR_GREY, "Someone already owns this car"); return 1; } if(PlayerInfo[giveplayerid][pPcarkey] == -1) { PlayerInfo[giveplayerid][pPcarkey] = idcar; } else if(PlayerInfo[giveplayerid][pPcarkey2] == -1) { PlayerInfo[giveplayerid][pPcarkey2] = idcar; } else { return 1; } CarInfo[idcar][cOwned] = 1; GetPlayerName(giveplayerid, sendername, sizeof(sendername)); strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999); SavePlayerData(giveplayerid); OnPropUpdate(); format(string,128, " Personal car set to %s",sendername); SendClientMessage(playerid, COLOR_GREEN, string); } } else SendClientMessage(playerid, COLOR_GREY, " ERROR. That car is not a ownable car"); } else SendClientMessage(playerid, COLOR_GREY, " You must be in ownable vehicle to set a personal car"); } else return 1; } if(dialogid == DIALOG_NEWPASS) { if(response) { if(strlen(inputtext)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Users/%s.ini", sendername); new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); //Encrypt(tmppass); OnPlayerChangePass(playerid,tmppass); ShowPlayerDialog(playerid, DIALOG_NEWPASS+2, DIALOG_STYLE_MSGBOX, " {CCAB52}Password was changed", " {FFE100}* Password was changed successfully.\n {009C1D}* Do not forget it!", "Hide", ""); return 1; } else { ShowPlayerDialog(playerid, DIALOG_NEWPASS,DIALOG_STYLE_PASSWORD, " {CCAB52}Change password"," \nType in box your new password:\n","Done",""); return 1; } } return 1; } if(dialogid == DIALOG1WARN) { if(response) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), " %s a platit $5.000.000 si un level ca sa isi scoata un warn", sendername); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[playerid][pWarns] -= 1; PlayerInfo[playerid][pLevel] -= 1; GivePlayerMoney(playerid, -5000000); } else { return 1; } }
  6. am un sistem de masini personale care are un bug mare... creez masini personale si la un restart sau a doua zii se incurca masinile si as vrea sa il sterg .... dar cum sa fac ca sa nu faca bug la masini ?
  7. am si eu aceasta problema ... cand compilez sv .. imi apare asa C:\Users\cr3azy\Desktop\Gta.Furios.Ro\gamemodes\gm.pwn(4108) : warning 219: local variable "rand" shadows a variable at a preceding level C:\Users\cr3azy\Desktop\Gta.Furios.Ro\gamemodes\gm.pwn(12511) : warning 219: local variable "Distance" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Header size: 10104 bytes Code size: 2124972 bytes Data size: 6324696 bytes Stack/heap size: 16384 bytes; estimated max. usage=4127 cells (16508 bytes) Total requirements: 8476156 bytes 2 Warnings.
  8. acum nu mai merge /sellprods si /load iar cand dau /buyprods nu se intampla nimic... :l
  9. am problema la /buyprods cand dau imi zice ca serverul nu recunoaste comanda if(strcmp(cmd, "/buyprods", true) == 0) { if(IsPlayerConnected(playerid)) { new tmpcar = GetPlayerVehicleID(playerid); new compcost = 50; if(PlayerToPoint(60.0, playerid, -78.9067,-1130.7458,0.6489))//2787.8,-2436.3,13.7 { if(IsATruck(tmpcar)) { if(IsTrailerAttachedToVehicle(tmpcar)) { if(PlayerHaul[GetVehicleTrailer(tmpcar)][pLoad] < PlayerHaul[GetVehicleTrailer(tmpcar)][pCapasity]) { new amount; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]"); return 1; } amount = strval(tmp); if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, " Can't buy less then 1 Product or more then 500 !"); return 1; } new check= PlayerHaul[GetVehicleTrailer(tmpcar)][pLoad] + amount; if(check > PlayerHaul[GetVehicleTrailer(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[GetVehicleTrailer(tmpcar)][pLoad] += amount; format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[GetVehicleTrailer(tmpcar)][pLoad],PlayerHaul[GetVehicleTrailer(tmpcar)][pCapasity]); SendClientMessage(playerid, COLOR_GREEN, string); format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost); SendClientMessage(playerid, COLOR_GREEN, 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, COLOR_GREEN, string); return 1; } } else { format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[GetVehicleTrailer(tmpcar)][pLoad],PlayerHaul[GetVehicleTrailer(tmpcar)][pCapasity]); SendClientMessage(playerid, COLOR_GREEN, string); return 1; } } else SendClientMessage(playerid, COLOR_GRAD1, " * Trebuie sa-ti cuplezi mai intai remorca"); } else { SendClientMessage(playerid, COLOR_GRAD1, "This Vehicle does not deliver Products."); return 1; } } } return 1; }
  10. am adaugat la jobul trucker alte masini si am facut /buyprods /load si /sellprods dar imi da eroarea asta C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3115) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3119) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3131) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3135) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3139) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3143) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3147) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3151) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3155) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3167) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3171) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3175) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3179) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3183) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3195) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3199) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3203) : error 004: function "PlayerToPoint" is not implemented C:\Users\cr3azy\Desktop\gta.furios.ro\gamemodes\Godfather.pwn(3215) : error 004: function "PlayerToPoint" is not implemented de la asta poate fii? else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-77.7288,-1136.3896,1.0781)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Trucker, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Trucker, type /accept job."); GettingJob[playerid] = 16; }
  11. cr3azy

    Ajutor....!!

    streamer 2.6.1 si junkbuster 11
  12. imi spuneti si mie va rog cum as putea ca taxi company sa fie job din factiune?
  13. cr3azy

    Ajutor....!!

    fs armedbody si junkbuster... si pluginuri streamer
  14. cr3azy

    Ajutor....!!

    nu am asa multe... dar chiar daca mai scot din ele... tot la fel face... :(
  15. am un server gf editat... si am adaugat recent mai multe pe server.... dar am aflat ca face lag... si nu stiu de ce...
  16. Salut am shi eu un server de samp si am lucrat mult la el sal il fac ... iar azi am descoperit ca dak ai un cont... si te connectezi pe el merge sa intri pe cont cu orice parola.... Poate cineva sami spuna ce sa fac?
×
×
  • 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.