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

Question

Posted

Trec direct la subiect:

dcmd_vweaps(playerid,params[])

{

        GivePlayerWeapon(playerid,31,99999); GivePlayerWeapon(playerid,16,99999);

        GivePlayerWeapon(playerid,34,99999); GivePlayerWeapon(playerid,28,99999);

        GivePlayerWeapon(playerid,18,99999); GivePlayerWeapon(playerid,24,99999);

        GivePlayerWeapon(playerid,27,99999); GivePlayerWeapon(playerid,39,99999);

        GivePlayerWeapon(playerid,6,1); GivePlayerWeapon(playerid,42,99999);

        GivePlayerWeapon(playerid,17,99999); GivePlayerWeapon(playerid,46,99999);

        SendClientMessage(playerid,RED,"Weapons for VIPS");

return 1;

}

if(AccInfo[playerid][pVip] >= 0)

{

Asta e comanda /vweaps. Am mai facut-o odata dar nu stiu cum s-a intamplat de acum nu o mai aveam.

Am pus-o din nou cum e mai sus.

Am pus si dcmd(vweaps,6,cmdtext);

Si cand am dat compile:

D:\[RSG]\Filterscripts\LuxAdmin.pwn(3034) : warning 217: loose indentation

D:\[RSG]\Filterscripts\LuxAdmin.pwn(3024) : warning 203: symbol is never used: "params"

D:\[RSG]\Filterscripts\LuxAdmin.pwn(3024 -- 3037) : error 010: invalid function or declaration

Am mai creat odata comanda si a mers.. Dar nu stiu cum s-a sters singura.. Oricum cum fac sa nu mai dea aceste warns/errors?

www.youtube.com/thebwgg

6 answers to this question

Recommended Posts

Posted

Incearca :

[pawn] if(strcmp(cmd, "/vweaps", true) == 0)

{

if(AccInfo[playerid][pVip] >= 0)

{

GivePlayerWeapon(playerid,31,99999);

GivePlayerWeapon(playerid,16,99999);

GivePlayerWeapon(playerid,34,99999);

GivePlayerWeapon(playerid,28,99999);

GivePlayerWeapon(playerid,18,99999);

GivePlayerWeapon(playerid,24,99999);

GivePlayerWeapon(playerid,27,99999);

GivePlayerWeapon(playerid,39,99999);

GivePlayerWeapon(playerid,6,1);

GivePlayerWeapon(playerid,42,99999);

GivePlayerWeapon(playerid,17,99999);

GivePlayerWeapon(playerid,46,99999);

SendClientMessage(playerid,RED,"Weapons for VIPS");

return 1;

}

}[/pawn]

Posted

Am facut asa si

dcmd_vweaps(playerid,params[])

{

    #pragma unused params

    if(AccInfo[playerid][pVip] >= 0)

        GivePlayerWeapon(playerid,31,99999); GivePlayerWeapon(playerid,16,99999);

        GivePlayerWeapon(playerid,34,99999); GivePlayerWeapon(playerid,28,99999);

        GivePlayerWeapon(playerid,18,99999); GivePlayerWeapon(playerid,24,99999);

        GivePlayerWeapon(playerid,27,99999); GivePlayerWeapon(playerid,39,99999);

        GivePlayerWeapon(playerid,6,1); GivePlayerWeapon(playerid,42,99999);

        GivePlayerWeapon(playerid,17,99999); GivePlayerWeapon(playerid,46,99999);

        SendClientMessage(playerid,RED,"Weapons for VIPS");

        return 1;

    }

Si mi-a dat 1 warn:

D:\[RSG]\Filterscripts\LuxAdmin.pwn(3028) : warning 217: loose indentation

Asta e linia 3028:

GivePlayerWeapon(playerid,31,99999); GivePlayerWeapon(playerid,16,99999);

Ce e in neregula ? :huh:

www.youtube.com/thebwgg

Posted

[pawn]

dcmd_vweaps(playerid,params[])

{

        #pragma unused params

        if(AccInfo[playerid][pVip] >= 0)

        {

        GivePlayerWeapon(playerid,31,99999); GivePlayerWeapon(playerid,16,99999);

        GivePlayerWeapon(playerid,34,99999); GivePlayerWeapon(playerid,28,99999);

        GivePlayerWeapon(playerid,18,99999); GivePlayerWeapon(playerid,24,99999);

        GivePlayerWeapon(playerid,27,99999); GivePlayerWeapon(playerid,39,99999);

        GivePlayerWeapon(playerid,6,1); GivePlayerWeapon(playerid,42,99999);

        GivePlayerWeapon(playerid,17,99999); GivePlayerWeapon(playerid,46,99999);

        SendClientMessage(playerid,RED,"Weapons for VIPS");

        }

        return 1;

}

[/pawn]

incearca asa !!

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Posted

lasa-l asa

fi atent

[pawn]

{

//in interiorul lui dcmd lasi astea)

    #pragma unused params

    if(AccInfo[playerid][pVip] >= 0)

        GivePlayerWeapon(playerid,31,99999); GivePlayerWeapon(playerid,16,99999);

        GivePlayerWeapon(playerid,34,99999); GivePlayerWeapon(playerid,28,99999);

        GivePlayerWeapon(playerid,18,99999); GivePlayerWeapon(playerid,24,99999);

        GivePlayerWeapon(playerid,27,99999); GivePlayerWeapon(playerid,39,99999);

        GivePlayerWeapon(playerid,6,1); GivePlayerWeapon(playerid,42,99999);

        GivePlayerWeapon(playerid,17,99999); GivePlayerWeapon(playerid,46,99999);

        SendClientMessage(playerid,RED,"Weapons for VIPS");

        return 1;

    }

[/pawn]

si sus de tot in top of script

adaugi

[pawn]

#pragma tabsize 0

[/pawn]

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Posted

adica de exemplu dupa ultimul #include ....

apesi enter si scrii ce am zis mai sus

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.