Jump to content
  • 0

Ajutor burned gotocp


Negrici Rares

Question

ERORR:warning 202: number of arguments does not match definition

YCMD:gotocp(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 6) return true;
    if(CP[playerid] == 0) return SCM(playerid, COLOR_RED, "Eroare: Nu ai un checkpoints activ");
    if(GetPlayerState(playerid) == 2) SetVehiclePosEx(playerid, GetPlayerVehicleID(playerid), CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);
    else SetPlayerPosEx(false, playerid, CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);   AICI ESTE PROBLEMA!!! DUPA CUM ZICE SUBLIME
    new vw = GetPlayerVirtualWorld(playerid);
    SetVehicleVirtualWorld(ExamCar[playerid], vw);
    SetPlayerVirtualWorld(playerid, vw);
    SetPlayerInterior(playerid, 0);
    return true;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Salut @Negrici Rares,

Trimite si functia SetPlayerPosEx daca vrei sa fie rezolvata problema.

Insa din ce functii de genul am mai vazut eu, nu stiu la ce foloseste acel false, deci ori problema provine de la el, ori trebuie sa mai adaugi ceva.

Incearca sa scoti acel false, iar daca problema exista in continuare, trimite functia SetPlayerPosEx sa ne dam si noi seama cum functioneaza la tine.

O zi buna!

 

[EDIT]

Sectiunea pentru ajutor e aici: https://www.sa-mp.ro/forums/forum/355-ajutor-scripting/

Edited by shane

Daca te-am ajutat =>

spacer.png

Link to comment
Share on other sites

  • 0
On 5/1/2022 at 3:19 PM, Negrici Rares said:

ERORR:warning 202: number of arguments does not match definition

YCMD:gotocp(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 6) return true;
    if(CP[playerid] == 0) return SCM(playerid, COLOR_RED, "Eroare: Nu ai un checkpoints activ");
    if(GetPlayerState(playerid) == 2) SetVehiclePosEx(playerid, GetPlayerVehicleID(playerid), CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);
    else SetPlayerPosEx(false, playerid, CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);   AICI ESTE PROBLEMA!!! DUPA CUM ZICE SUBLIME
    new vw = GetPlayerVirtualWorld(playerid);
    SetVehicleVirtualWorld(ExamCar[playerid], vw);
    SetPlayerVirtualWorld(playerid, vw);
    SetPlayerInterior(playerid, 0);
    return true;
}

Scoate acel 'false' din SetPlayerPosEx.

  • Thanks 1
Link to comment
Share on other sites

  • 0
22 hours ago, shane said:

Salut @Negrici Rares,

Trimite si functia SetPlayerPosEx daca vrei sa fie rezolvata problema.

Insa din ce functii de genul am mai vazut eu, nu stiu la ce foloseste acel false, deci ori problema provine de la el, ori trebuie sa mai adaugi ceva.

Incearca sa scoti acel false, iar daca problema exista in continuare, trimite functia SetPlayerPosEx sa ne dam si noi seama cum functioneaza la tine.

O zi buna!

 

[EDIT]

Sectiunea pentru ajutor e aici: https://www.sa-mp.ro/forums/forum/355-ajutor-scripting/

Mi-am dat seama pana la urmă,era de la acel false, Multumesc , O zi buna!

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.