Advertisement
Guest User

Erori sellgun

a guest
Jul 26th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.71 KB | None | 0 0
  1. Erori:
  2. D:\Includes\include\mSelection.inc(207) : warning 219: local variable "x" shadows a variable at a preceding level
  3. D:\Includes\include\mSelection.inc(222) : warning 219: local variable "x" shadows a variable at a preceding level
  4. D:\Includes\include\mSelection.inc(426) : warning 219: local variable "x" shadows a variable at a preceding level
  5. D:\Includes\include\mSelection.inc(556) : warning 219: local variable "x" shadows a variable at a preceding level
  6. D:\Includes\include\fly.inc(45) : warning 219: local variable "x" shadows a variable at a preceding level
  7. D:\Includes\include\fly.inc(45) : warning 219: local variable "y" shadows a variable at a preceding level
  8. D:\Includes\include\fly.inc(45) : warning 219: local variable "z" shadows a variable at a preceding level
  9. D:\Includes\include\fly.inc(60) : warning 219: local variable "x" shadows a variable at a preceding level
  10. D:\Includes\include\fly.inc(60) : warning 219: local variable "y" shadows a variable at a preceding level
  11. D:\Includes\include\fly.inc(60) : warning 219: local variable "z" shadows a variable at a preceding level
  12. D:\Includes\include\fly.inc(108) : warning 219: local variable "x" shadows a variable at a preceding level
  13. D:\Includes\include\fly.inc(108) : warning 219: local variable "y" shadows a variable at a preceding level
  14. D:\Includes\include\fly.inc(108) : warning 219: local variable "z" shadows a variable at a preceding level
  15. D:\Includes\include\md5.inc(316) : warning 219: local variable "index" shadows a variable at a preceding level
  16. D:\newsman + roll ( jumate\gamemodes\wa-rpg.pwn(1846) : warning 219: local variable "x" shadows a variable at a preceding level
  17. D:\Includes\include\systems.inc(398) : error 017: undefined symbol "GetPlayerCash"
  18. D:\Includes\include\systems.inc(3907) : error 017: undefined symbol "CreateVehicleEx"
  19. D:\Includes\include\systems.inc(3908) : error 017: undefined symbol "CreateVehicleEx"
  20. D:\Includes\include\systems.inc(3909) : error 017: undefined symbol "CreateVehicleEx"
  21. D:\Includes\include\systems.inc(3910) : error 017: undefined symbol "CreateVehicleEx"
  22. D:\Includes\include\systems.inc(3911) : error 017: undefined symbol "CreateVehicleEx"
  23. D:\Includes\include\systems.inc(3914) : error 017: undefined symbol "CreateVehicleEx"
  24. D:\Includes\include\systems.inc(3915) : error 017: undefined symbol "CreateVehicleEx"
  25. D:\Includes\include\systems.inc(3916) : error 017: undefined symbol "CreateVehicleEx"
  26. D:\Includes\include\systems.inc(3917) : error 017: undefined symbol "CreateVehicleEx"
  27. D:\Includes\include\systems.inc(3918) : error 017: undefined symbol "CreateVehicleEx"
  28. D:\Includes\include\systems.inc(3921) : error 017: undefined symbol "CreateVehicleEx"
  29. D:\Includes\include\systems.inc(3922) : error 017: undefined symbol "CreateVehicleEx"
  30. D:\Includes\include\systems.inc(3923) : error 017: undefined symbol "CreateVehicleEx"
  31. D:\Includes\include\systems.inc(3924) : error 017: undefined symbol "CreateVehicleEx"
  32. D:\Includes\include\systems.inc(3925) : error 017: undefined symbol "CreateVehicleEx"
  33. D:\Includes\include\systems.inc(3926) : error 017: undefined symbol "CreateVehicleEx"
  34. D:\Includes\include\systems.inc(3927) : error 017: undefined symbol "CreateVehicleEx"
  35. D:\Includes\include\systems.inc(3928) : error 017: undefined symbol "CreateVehicleEx"
  36. D:\Includes\include\systems.inc(3929) : error 017: undefined symbol "CreateVehicleEx"
  37. D:\Includes\include\systems.inc(3930) : error 017: undefined symbol "CreateVehicleEx"
  38. D:\Includes\include\systems.inc(3931) : error 017: undefined symbol "CreateVehicleEx"
  39. D:\Includes\include\systems.inc(3932) : error 017: undefined symbol "CreateVehicleEx"
  40. D:\Includes\include\systems.inc(3933) : error 017: undefined symbol "CreateVehicleEx"
  41. D:\Includes\include\systems.inc(3934) : error 017: undefined symbol "CreateVehicleEx"
  42. D:\Includes\include\systems.inc(3935) : error 017: undefined symbol "CreateVehicleEx"
  43.  
  44. Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
  45.  
  46.  
  47. 26 Errors.
  48. [Finished in 67.5s]
  49.  
  50. Codul creat de mine:
  51. CMD:sellgun(playerid, params[]) {
  52.     if(PlayerInfo[playerid][pJob] != 5) return SendClientMessage(playerid,-1,"Nu ai jobul 'Distribuitor de arme'");
  53.     new id,string[128];
  54.     if(sscanf(params, "us[10]d",id)) {
  55.     SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/sellgun <playerid/name>");
  56.     if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
  57.     if(PlayerInfo[playerid][pJailTime] != 0) return SendClientMessage(playerid, COLOR_GREY, "Nu poti vinde lucruri atata timp cat esti in jail!");
  58.     if(IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda atata timp cat acel player este intr-un vehicul.");
  59.     if(PlayerToPoint(300.0, playerid, -1423.5153,935.8321,1036.4756)) return SCM(playerid, -1, "Nu poti folosi aceasta comanda in arena de evente.");
  60.     ShowPlayerDialog(playerid, DIALOG_SELLGUN, DIALOG_STYLE_TABLIST_HEADERS, "Sell Gun",
  61.     "Gun\tMaterials\tMoney\tAmmo \n\
  62.     Desert Eagle\t100\t150\t100\n\
  63.     M4A1\t200\t250\t500\n\
  64.     Combat Shoutgun\t500\t1000\t25\n\
  65.     Rifle\t300\t600\t10"
  66.     "Select", "Cancel");
  67.     return 1;
  68. }
  69.  
  70. case DIALOG_SELLGUN:{
  71.     if(!response) return 1;
  72.     if(response) return 1;
  73.  
  74.     new targetid = id;
  75.  
  76.     switch(listitem): {
  77.         case 0: {
  78.             if(PlayerInfo[playerid][pMats] < 100) return SendClientMessage(playerid,COLOR_GREY, "Nu ai destule materiale pentru aceasta arma.");
  79.             GivePlayerWeapon(targetid, 24, 150);
  80.             PlayerInfo[targetid][pMats] -= 100;
  81.             PlayerInfo[targetid][pMoney] -= 150;
  82.         }
  83.         case 1: {
  84.             if(PlayerInfo[playerid][pMats] < 200) return SendClientMessage(playerid,COLOR_GREY, "Nu ai destule materiale pentru aceasta arma.");
  85.             GivePlayerWeapon(targetid, 31, 150);
  86.             PlayerInfo[targetid][pMats] -= 200;
  87.             PlayerInfo[targetid][pMoney] -= 250;
  88.         }
  89.         case 2: {
  90.             if(PlayerInfo[playerid][pMats] < 200) return SendClientMessage(playerid,COLOR_GREY, "Nu ai destule materiale pentru aceasta arma.");
  91.             GivePlayerWeapon(targetid, 27, 25);
  92.             PlayerInfo[targetid][pMats] -= 500;
  93.             PlayerInfo[targetid][pMoney] -= 1000;
  94.         }
  95.         case 3: {
  96.             if(PlayerInfo[playerid][pMats] < 200) return SendClientMessage(playerid,COLOR_GREY, "Nu ai destule materiale pentru aceasta arma.");
  97.             GivePlayerWeapon(targetid, 33, 10);
  98.             PlayerInfo[targetid][pMats] -= 300;
  99.             PlayerInfo[targetid][pMoney] -= 600;
  100.         }      
  101.     }
  102.     GetWeaponNameEx(weapon[playerid],gunname,sizeof(gunname));
  103.     format(string, sizeof(string), "* I-ai oferit lui %s %s.",GetName(id),gunname);
  104.     SendClientMessage(playerid, COLOR_MONEY, string);
  105.     format(string, sizeof(string), "* %s ti-a oferit %s, (scrie /accept gun %d) pentru a accepta.",GetName(playerid),gunname,playerid);
  106.     SendClientMessage(id, COLOR_MONEY, string);
  107.     return 1;
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement