Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

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;
}

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

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

  • 0
Posted
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
  • 0
Posted
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!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.