Jump to content
  • 0

Nu merg comenzile


gogoaxel

Question

11 answers to this question

Recommended Posts

Salut uite sa zicem ca ai comanda pe Dcmd si nu iti merge bun.

Intrebarea mea este: De ce nu o bagi pe Cmd sau Zcmd?

Un exemplu de comanda pe Cmd...

[pawn]CMD:forum(playerid,params[]) {

SCM(playerid,0xFFFFFFAA,"{226B00}Site:{FFFFFF} wWw.SA-MP.Ro");

SCM(playerid,0xFFFFFFAA,"{226B00}Forum:{FFFFFF} wWw.SA-MP.Ro/Forum");

return (1) ; }[/pawn]

Sursa comanda: SCB >> Stunt City Bacau.

Link to comment
Share on other sites

Citeste aici asta

// Returning 0 informs the server that the command hasn't been processed by this script.

    // OnPlayerCommandText will be called in other scripts until one returns 1.

    // If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Ce comanda tu nu intelegi ca nu merge nici-o comanda vrei sa le dau pe toate ?? sunt cam 100 de comenzi..

P.S: Darky imi poti cum pot sa verific aia?

Sigur.Uitate la sfarsitul comenzii si vezi valoarea, adica daca scrie "return ( 1 ) ;" sau "return ( 0 ) ;" iar daca valoarea este setata pe 0 (fals), schimb-o in 1 (adevarat).De asemenea, verifica si public-ul OnPlayerCommandText ca sa vezi ce valoare reintoarce.

Link to comment
Share on other sites

Si acum vrei ca oamenii care ar vrea sa te ajute sa viseze cum arata una din comenzile tale? puteai sa alegi una din comenzi si sa vedem cum e facut. Si probabil ca ai un return inainte de return 1, care returneaza false, am patit si eu asta ( prostia mea ... ).

Link to comment
Share on other sites

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.