Jump to content
  • 0

Comanda /cuff nu merge GM Burned.


.maSTER

Question

De ce nu merge? Scriu /cuff si scrie /cuff player id pun player id si nu se intampla nimic, cu un flterscript merge dar e tare urat.

Ce sa fac?

YCMD:cuff(playerid, params[], help) {
    if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti politist.");
    new id,string[180];
    if(sscanf(params, "u",id)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/cuff <playerid/name>");
    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
    if(IsACop(id)) return 1;
    if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu esti la datorie!");
    if(PlayerCuffed2[id] > 0) return 1;
    if(!ProxDetectorS(8.0, playerid, id)) return SCM(playerid, -1, "Acel player nu este langa tine.");
    if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!");
    if(!IsPlayerInAnyVehicle(id)) return 1;
    TogglePlayerControllable(id, 0);
    format(string, sizeof(string), "* %s has handcuffed %s.", GetName(playerid),GetName(id));
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    PlayerCuffed2[id] = 1;
    SetPlayerAttachedObject(id, 1, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
    SetPlayerSpecialAction(id,SPECIAL_ACTION_CUFFED);
    return 1;
}

Link to comment
Share on other sites

Recommended Posts

  • 0

[23:04:33] [debug] Run time error 4: "Array index out of bounds"
[23:04:33] [debug]  Accessing element at index 402653184 past array upper bound 99
[23:04:33] [debug] AMX backtrace:
[23:04:33] [debug] #0 0021a6e0 in public @_yCa (402653184, -1207959552, -2147462076) from gmm.amx
[23:04:33] [debug] #1 0021a694 in ?? () from gmm.amx
[23:04:33] [debug] #2 00039615 in public @yC_uncuff () from gmm.amx
[23:04:33] [debug] #3 native CallRemoteFunction () from samp03svr
[23:04:33] [debug] #4 00036ef0 in ?? (1, 60167444, 0) from gmm.amx
[23:04:33] [debug] #5 00036734 in ?? (1, 60167444) from gmm.amx
[23:04:33] [debug] #6 00029100 in public OnPlayerCommandText (1, 60167444) from gmm.amx
[23:04:46] [debug] Run time error 5: "Invalid memory access"
[23:04:46] [debug] AMX backtrace:
[23:04:46] [debug] #0 0021a6c4 in public @yC_uncuff () from gmm.amx
[23:04:46] [debug] #1 native CallRemoteFunction () from samp03svr
[23:04:46] [debug] #2 00036ef0 in ?? (0, 60167444, 0) from gmm.amx
[23:04:46] [debug] #3 00036734 in ?? (0, 60167444) from gmm.amx
[23:04:46] [debug] #4 00029100 in public OnPlayerCommandText (0, 60167444) from gmm.amx
[23:05:52] kepazeW(2) s-a inregistrat pe server. [#8]
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.