Jump to content
  • 0

Am Nevoie De Ajutor error 035: argument type mismatch (argument 2)


Question

Posted

Am nevoie de ajutor la acest script nu inteleg de ce imi da error.

C:\Users\Nu-ti trebuie\Desktop\SA-MP.MINIGAME.MD\gamemodes\SA-MP.MINIGAME.MD.pwn(40) : error 035: argument type mismatch (argument 2)
C:\Users\Nu-ti trebuie\Desktop\SA-MP.MINIGAME.MD\gamemodes\SA-MP.MINIGAME.MD.pwn(43) : error 035: argument type mismatch (argument 2)
C:\Users\Nu-ti trebuie\Desktop\SA-MP.MINIGAME.MD\gamemodes\SA-MP.MINIGAME.MD.pwn(46) : error 035: argument type mismatch (argument 2)
C:\Users\Nu-ti trebuie\Desktop\SA-MP.MINIGAME.MD\gamemodes\SA-MP.MINIGAME.MD.pwn(50) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Script:

Quote

CMD:w(playerid, params[])
{
    new weaponid, ammo;
    
    if(sscanf(params, "ii", weaponid, ammo))
        return SCM(playerid, COLOR_RED, "Foloseste: /weapon [ID], [AMMO]");
        
    if(weaponid < 1 || weaponid > 46 || weaponid == 18)
        return SCM(playerid, COLOR_RED, "Nu Exista Arma Cu Acest [ID]");
        
    if (ammo < 1)
        return SCM(playerid, COLOR_RED, "Nu Poti Sa Ai O Arma Cu 0 Gloante");
        
    GivePlayerWeapon(playerid, weaponid, ammo);
    
    SCM(playerid, COLOR_GREEN, "Bucurate De Arma");
    return 1;
}

 

2 answers to this question

Recommended Posts

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.