Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:mulgevaca(playerid, params[], help)
- {
- if(LapteVaca[playerid]) return SendClientMessage(playerid,-1, "SERVER : {00FF00}Ai luat deja laptele vaci! Dute in hambar! Si nu fii lenels!");
- for(new i = 0x0; i != sizeof(PozitieVaca); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,PozitieVaca[i][0], PozitieVaca[i][1], PozitieVaca[i][2]))
- {
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- switch(random(5))
- {
- case 0: LapteVaca[playerid] = !LapteVaca[playerid], Pas[i]--, SendClientMessage(playerid,-1, "FERMIER : {999999}Bravo , ai luat laptele de la vaca.Dute golestel!");
- case 1: SendClientMessage(playerid,-1, " {FF00FF}STOP! Vaca are mamita nu o mulge!{00FF00}(mamita=bolnava)");
- case 2: LapteVaca[playerid] = !LapteVaca[playerid], Pas[i]--, SendClientMessage(playerid,-1, "FERMIER : {999999}Bravo , ai luat laptele de la vaca.Dute golestel!");
- case 3: SendClientMessage(playerid,-1, " {FF00FF}STOP! Vaca are mamita nu o mulge!{00FF00}(mamita=bolnava)");
- }
- new string[128];
- if(Pas[i] == 0) return SendClientMessage(playerid,-1, "SERVER : {FFFFFF}Vaca asta a muls-o alt player.");
- format(string,sizeof(string),"{FFFFFF}Grajd cu o vaca pentru mulgere \nApasa {FFFFFF}H",Pas[i]);
- Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
- break;
- }
- }
- return 1;
- }
- //====================================================================================
- Erori
- [19:32:23] [debug] AMX backtrace:
- [19:32:23] [debug] #0 0016c860 in public @_yCmulgevaca (0, 45150904, 0) from rpg.amx
- [19:32:23] [debug] #1 0016c3e4 in public @yC_mulgevaca (0, 45150904, 0, 0) from rpg.amx
- [19:32:23] [debug] #2 native CallRemoteFunction () from samp03svr
- [19:32:23] [debug] #3 0001fa24 in ?? (0, 45150860, 0) from rpg.amx
- [19:32:23] [debug] #4 0001f268 in ?? (0, 45150860) from rpg.amx
- [19:32:23] [debug] #5 00011dcc in public OnPlayerCommandText (0, 45150860) from rpg.amx
- [19:32:25] [debug] Run time error 4: "Array index out of bounds"
- [19:32:25] [debug] Accessing element at index 6 past array upper bound 5
- [19:32:25] [debug] AMX backtrace:
- [19:32:25] [debug] #0 0016c76c in public @_yCmulgevaca (1, 45150904, 0) from rpg.amx
- [19:32:25] [debug] #1 0016c3e4 in public @yC_mulgevaca (1, 45150904, 0, 0) from rpg.amx
- [19:32:25] [debug] #2 native CallRemoteFunction () from samp03svr
- [19:32:25] [debug] #3 0001fa24 in ?? (1, 45150860, 0) from rpg.amx
- [19:32:25] [debug] #4 0001f268 in ?? (1, 45150860) from rpg.amx
- [19:32:25] [debug] #5 00011dcc in public OnPlayerCommandText (1, 45150860) from rpg.amx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement