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

Recommended Posts

Posted

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

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

Ai pus semnul exlamari dupa terminarea ghilimelelor

Posted (edited)

dar tot imi da un error

 

C:\Users\zxc\Desktop\~~~~~~\gamemodes\fromzero.pwn(2119) : error 035: argument type mismatch (argument 2)

Edited by Playerul fara nume
Posted

scoate " inainte de bonus, te poti folosi de '

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

Posted

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;

}

Posted
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!\"");
  • 3 years later...
Posted (edited)

#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

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.