Advertisement
xt3z0ne

Untitled

Dec 28th, 2018
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. YCMD:mulgevaca(playerid, params[], help)
  2. {
  3. if(LapteVaca[playerid]) return SendClientMessage(playerid,-1, "SERVER : {00FF00}Ai luat deja laptele vaci! Dute in hambar! Si nu fii lenels!");
  4. for(new i = 0x0; i != sizeof(PozitieVaca); i++)
  5. {
  6. if(IsPlayerInRangeOfPoint(playerid,2.0,PozitieVaca[i][0], PozitieVaca[i][1], PozitieVaca[i][2]))
  7. {
  8. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  9. switch(random(5))
  10. {
  11. case 0: LapteVaca[playerid] = !LapteVaca[playerid], Pas[i]--, SendClientMessage(playerid,-1, "FERMIER : {999999}Bravo , ai luat laptele de la vaca.Dute golestel!");
  12. case 1: SendClientMessage(playerid,-1, " {FF00FF}STOP! Vaca are mamita nu o mulge!{00FF00}(mamita=bolnava)");
  13. case 2: LapteVaca[playerid] = !LapteVaca[playerid], Pas[i]--, SendClientMessage(playerid,-1, "FERMIER : {999999}Bravo , ai luat laptele de la vaca.Dute golestel!");
  14. case 3: SendClientMessage(playerid,-1, " {FF00FF}STOP! Vaca are mamita nu o mulge!{00FF00}(mamita=bolnava)");
  15. }
  16. new string[128];
  17. if(Pas[i] == 0) return SendClientMessage(playerid,-1, "SERVER : {FFFFFF}Vaca asta a muls-o alt player.");
  18. format(string,sizeof(string),"{FFFFFF}Grajd cu o vaca pentru mulgere \nApasa {FFFFFF}H",Pas[i]);
  19. Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
  20. break;
  21. }
  22. }
  23. return 1;
  24. }
  25.  
  26. //====================================================================================
  27. Erori
  28. [19:32:23] [debug] AMX backtrace:
  29. [19:32:23] [debug] #0 0016c860 in public @_yCmulgevaca (0, 45150904, 0) from rpg.amx
  30. [19:32:23] [debug] #1 0016c3e4 in public @yC_mulgevaca (0, 45150904, 0, 0) from rpg.amx
  31. [19:32:23] [debug] #2 native CallRemoteFunction () from samp03svr
  32. [19:32:23] [debug] #3 0001fa24 in ?? (0, 45150860, 0) from rpg.amx
  33. [19:32:23] [debug] #4 0001f268 in ?? (0, 45150860) from rpg.amx
  34. [19:32:23] [debug] #5 00011dcc in public OnPlayerCommandText (0, 45150860) from rpg.amx
  35. [19:32:25] [debug] Run time error 4: "Array index out of bounds"
  36. [19:32:25] [debug] Accessing element at index 6 past array upper bound 5
  37. [19:32:25] [debug] AMX backtrace:
  38. [19:32:25] [debug] #0 0016c76c in public @_yCmulgevaca (1, 45150904, 0) from rpg.amx
  39. [19:32:25] [debug] #1 0016c3e4 in public @yC_mulgevaca (1, 45150904, 0, 0) from rpg.amx
  40. [19:32:25] [debug] #2 native CallRemoteFunction () from samp03svr
  41. [19:32:25] [debug] #3 0001fa24 in ?? (1, 45150860, 0) from rpg.amx
  42. [19:32:25] [debug] #4 0001f268 in ?? (1, 45150860) from rpg.amx
  43. [19:32:25] [debug] #5 00011dcc in public OnPlayerCommandText (1, 45150860) from rpg.amx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement