Jump to content

AJUTOR LA COMANDA /BONUS


Recommended Posts

Buna! Azi m-am gandit sa fac un edit pt un gamemode (nu dau link sa nu fac reclama) si vreau sa fac comanda "/bonus".

Problema este ca imi da multe errori

 

Aici este ce imi da la compile:

 

C:\Users\zxc\Desktop\~~~~~~~~\gamemodes\fromzero.pwn(2119) : warning 202: number of arguments does not match definition
C:\Users\zxc\Desktop\~~~~~~~~\gamemodes\fromzero.pwn(2121) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\zxc\Desktop\~~~~~~~~\gamemodes\fromzero.pwn(2121 -- 2122) : warning 215: expression has no effect
C:\Users\zxc\Desktop\~~~~~~~~\gamemodes\fromzero.pwn(2122) : error 001: expected token: ";", but found "}"
Pawn compiler 3.10.6              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
 

Si aici este codul:

 

//comanda bonus

YCMD:bonus(playerid, params[], help) {

    if(PlayerInfo[playerid][pLevel] == 1)

    {

           GivePlayerCash(playerid, 100000);

           PlayerInfo[playerid][pLevel] = 2;

        SCM(playerid, COLOR_JADE, "Ai primit 250.000$ si ai crescut cu un nivel pentru ca ai folosit comanda "/bonus"!);

    }

    return 1;

}

 

Multumesc

Link to comment
Share on other sites

YCMD:bonus(playerid, params[], help) {

    if(PlayerInfo[playerid][pLevel] == 1)

    {

           GivePlayerCash(playerid, 100000);

           PlayerInfo[playerid][pLevel] = 2;

        SCM(playerid, COLOR_JADE, "Ai primit 250.000$ si ai crescut cu un nivel pentru ca ai folosit comanda "/bonus"!");

    }

    return 1;

}

Link to comment
Share on other sites

11 hours ago, jumainkain said:

 


SCM(playerid, COLOR_JADE, "Ai primit 250.000$ si ai crescut cu un nivel pentru ca ai folosit comanda "/bonus"!);


In loc de "/bonus" scrie '/bonus'.

 

Nu trebuie neaparat, se poate face si asa.

SCM(playerid, COLOR_JADE, "Ai primit 250.000$ si ai crescut cu un nivel pentru ca ai folosit comanda \"/bonus!\"");
Link to comment
Share on other sites

  • 3 years later...

#define COLOR_JADE 0x87FF1FFF

YCMD:bonus(playerid, params[], help)

{

    if (PlayerInfo[playerid][pLevel] == 1)

    {

        GivePlayerCash(playerid, 250000);

        PlayerInfo[playerid][pLevel] = 2;

        SCM(playerid, COLOR_JADE, "Ai primit 250.000$ si ai crescut cu un nivel pentru ca ai folosit comanda \"/bonus\"!");

    }

    return 1;

}

Edited by Hackeru Suprem
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
Reply to this topic...

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