Guest User

Untitled

a guest
Aug 30th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. Ovde mi izlazi errori: Napisanna ti je dole komanda i napisano ti je gde izlazi erro a za ovaj zadnji PlayerPos otrivam sta je al nikako da ga otkrijem xD :)ako znas i to mi pomogni :D
  2.  
  3.  
  4. C:\Users\Acke\Desktop\samp03e_svr_R2_win32\gamemodes\moja.pwn(29814) : warning 202: number of arguments does not match definition
  5. C:\Users\Acke\Desktop\samp03e_svr_R2_win32\gamemodes\moja.pwn(29814) : warning 202: number of arguments does not match definition
  6. C:\Users\Acke\Desktop\samp03e_svr_R2_win32\gamemodes\moja.pwn(29814) : warning 202: number of arguments does not match definition
  7. C:\Users\Acke\Desktop\samp03e_svr_R2_win32\gamemodes\moja.pwn(45106) : warning 203: symbol is never used: "PlayerPos"
  8. Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
  9.  
  10. Header size: 10208 bytes
  11. Code size: 1705448 bytes
  12. Data size: 11034456 bytes
  13. Stack/heap size: 16384 bytes; estimated max. usage=4466 cells (17864 bytes)
  14. Total requirements:12766496 bytes
  15.  
  16. 6 Warnings.
  17.  
  18.  
  19.  
  20.  
  21. Evo deo sktipre te gde mi izlazi :)
  22.  
  23. if(strcmp(cmd, "/bbank", true) == 0 || strcmp(cmd, "/bdeposit", true) == 0)
  24. {
  25. OVDE MI IZLAZI U OVOM KODU if(PlayerToPoint(3.0,playerid,1097.7882,-1606.0138,13.6151) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,2221.7788,-1153.8906,25.7614) || PlayerToPoint(3.0,playerid,1254.3721,-1639.1016,13.5469) || PlayerToPoint(3.0,playerid,2017.6630,-1332.5795,23.9844) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,296,1500.3928,-1741.7374,13.5469,181.5965,0))
  26. {
  27. tmp = strtok(cmdtext, idx);
  28. if(!strlen(tmp))
  29. {
  30. SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /bank [amount]");
  31. format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo[playerid][pAccount]);
  32. SendClientMessage(playerid, COLOR_GRAD3, string);
  33. return 1;
  34. }
  35. new cashdeposit = strval(tmp);
  36. if(!strlen(tmp))
  37. {
  38. SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /bank [amount]");
  39. format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo[playerid][pAccount]);
  40. SendClientMessage(playerid, COLOR_GRAD3, string);
  41. return 1;
  42. }
  43. if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
  44. {
  45. SendClientMessage(playerid, COLOR_GRAD2, " Nemate toliko");
  46. return 1;
  47. }
  48. GivePlayerMoney(playerid,-cashdeposit);
  49.  
  50. new curfunds = PlayerInfo[playerid][pAccount];
  51. PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount];
  52. SendClientMessage(playerid, COLOR_WHITE, "|___ BANKOVNO IZVJESCE ___|");
  53. format(string, sizeof(string), " Staro stanje: $%d", curfunds);
  54. SendClientMessage(playerid, COLOR_GRAD2, string);
  55. format(string, sizeof(string), " Depozit: $%d",cashdeposit);
  56. SendClientMessage(playerid, COLOR_GRAD4, string);
  57. SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
  58. format(string, sizeof(string), " Novo stanje: $%d", PlayerInfo[playerid][pAccount]);
  59. SendClientMessage(playerid, COLOR_WHITE, string);
  60. return 1;
  61. }
  62. return 1;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment