Jump to content

Recommended Posts

Posted

Am o problema ,  nu stiu unde sa pun return la aceasta comanda 

CMD:comanda_ascunsa(playerid, params[])
{
        SendClientMessage(playerid, 0x008040FF, "Ai primit (+) 1000000");
        GivePlayerCash(playerid, 1000000);
}

Posted

CMD:comanda_ascunsa(playerid, params[])
{
        SendClientMessage(playerid, 0x008040FF, "Ai primit (+) 1000000");
        GivePlayerCash(playerid, 1000000);
        return true; <----- aici poti si cu return 1; :) havefun
}

 
Posted (edited)

Nu prea inteleg,pentru ce folositi params[] daca nu aveti nici un parametru in aceasta comanda,cat veni vorba despre comanda,uite o metoda mai buna dupa parerea mea....

CMD:comanda_ascunsa(playerid){ return GivePlayerCash(playerid, 1000000); }

 

Edited by K H A I N
Posted
47 minutes ago, K H A I N said:

Nu prea inteleg,pentru ce folositi params[] daca nu aveti nici un parametru in aceasta comanda,cat veni vorba despre comanda,uite o metoda mai buna dupa parerea mea....


CMD:comanda_ascunsa(playerid){ return GivePlayerCash(playerid, 1000000); }

 

Si parantezele ce rost mai au, daca tot vrei sa faci economie de spatii stergi si parantezele.

Problema rezolvata, categoria gresita, topic close.

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • Mister locked this topic
Guest
This topic is now closed to further replies.
×
×
  • 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.