Jump to content
  • 0

Intrebare-hidetrexdrawforplayer


Alexica721

Question

16 answers to this question

Recommended Posts

as vrea decat pentru acel jucator care scrie

EDIT:Rock am facut o comanda

am puso in admin

si mi se blocheasa adminu

[pawn]{

    if(!strcmp(cmdtext, "/tdoff"))

    {

          TextDrawHideForPlayer(playerid, Textdraw[playerid]);

    return 1;

    }

    return 0;

}[/pawn]

M-am lasat de comunitatea sa-mp.ro

Link to comment
Share on other sites

if ( !strcmp ( cmdtext , "/tdoff" , true ) )

{

  TextDrawHideForPlayer ( playerid , /* Numele textdraw-ului. */ ) ;

  return ( 1 ) ;

}


Folosesti "playerid" la un textdraw doar cand textdraw-ul se creaza pentru fiecare jucator in parte.Daca textdraw-ul este unul obisnuit (nu se creaza pentru fiecare jucator cate un textdraw diferit) nu trebuie sa folosesti "playerid".Cum adica "ti se blocheaza adminu"?

Link to comment
Share on other sites

scuzatimi exprimarea gresita

cand am facut comanda si am puso intr-un script

mi se blocheaza compilarea

Nu cred ca este de la acest cod.Daca ai un script cu o marime exagerata, compilarea acelui script dureaza mai mult, dar daca scriptul este mai mic (in marime), nu ar trebui sa ti se blocheze compiler-ul.

Link to comment
Share on other sites

am incercat comanda lui darky dar imi dau niste prostii

comanda

[pawn]

public OnPlayerCommandText(playerid, cmdtext[])

if ( !strcmp ( cmdtext , "/tdoff" ) )

  {

        TextDrawHideForPlayer ( playerid , /* Numele textdraw-ului. */ ) ;

        return ( 1 ) ;

  }[/pawn]

erori

D:\server\filterscripts\lgts.pwn(35) : warning 217: loose indentation

D:\server\filterscripts\lgts.pwn(47) : warning 217: loose indentation

D:\server\filterscripts\lgts.pwn(48) : warning 217: loose indentation

D:\server\filterscripts\lgts.pwn(53) : warning 217: loose indentation

D:\server\filterscripts\lgts.pwn(68) : warning 217: loose indentation

D:\server\filterscripts\lgts.pwn(69) : warning 217: loose indentation

D:\server\filterscripts\lgts.pwn(97) : error 029: invalid expression, assumed zero

D:\server\filterscripts\lgts.pwn(97) : error 035: argument type mismatch (argument 2)

D:\server\filterscripts\lgts.pwn(102) : warning 209: function "OnPlayerCommandText" should return a value

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

M-am lasat de comunitatea sa-mp.ro

Link to comment
Share on other sites

Doamne..nu iti trece si tie putin prin cap ca in loc de /* Numele textdraw-ului. */ trebuie sa pui numele textdraw-ului care vrei sa il ascunzi?

Voi ma uimiti pe zii ce trece mai mult.

Link to comment
Share on other sites

Doamne..nu iti trece si tie putin prin cap ca in loc de /* Numele textdraw-ului. */ trebuie sa pui numele textdraw-ului care vrei sa il ascunzi?

Voi ma uimiti pe zii ce trece mai mult.

Doamne ajutai doamne 8-| !

Alexica721 .

Sa zicem ca vrei sa faci sa dispara textdrawul Romania [ Dau un exemplu ]

In script e " Romania = Etc "

si in script bagi

if ( !strcmp ( cmdtext , "/tdoff" ) )

{

        TextDrawHideForPlayer ( playerid , Romania ) ;

        return 1;

  }

7bdea99b11.png

rimmon curv.

Link to comment
Share on other sites

imi da erorile astea

D:\sl\gamemodes\DKR.pwn(2643) : error 029: invalid expression, assumed zero

D:\sl\gamemodes\DKR.pwn(2644) : error 010: invalid function or declaration

D:\sl\gamemodes\DKR.pwn(2647) : error 010: invalid function or declaration

D:\sl\gamemodes\DKR.pwn(2649) : error 054: unmatched closing brace ("}")

M-am lasat de comunitatea sa-mp.ro

Link to comment
Share on other sites

public OnPlayerCommandText ( playerid , cmdtext [ ] ) // Publicul OnPlayerCommandText.

{

  if ( !strcmp ( cmdtext , "/tdoff" , true ) ) // Comanda /tdoff.

{

  TextDrawHideForPlayer ( playerid , /* Numele textdraw-ului. */ ) ; // Functia care ascude textdraw-ul.

  return ( 1 ) ; // Comanda reintoarce valoarea 1 (true).

}

  return ( 0 ) ; // Publicul OnPlayerCommandText reintoarce mereu valoarea 0 (false).

}

Link to comment
Share on other sites

public OnPlayerCommandText ( playerid , cmdtext [ ] ) // Publicul OnPlayerCommandText.

{

  if ( !strcmp ( cmdtext , "/tdoff" , true ) ) // Comanda /tdoff.

  {

        TextDrawHideForPlayer ( playerid , HealthBar ) ; // Functia care ascude textdraw-ul.

        return ( 1 ) ; // Comanda reintoarce valoarea 1 (true).

  }

  return ( 0 ) ; // Publicul OnPlayerCommandText reintoarce mereu valoarea 0 (false).

eroarea persista

M-am lasat de comunitatea sa-mp.ro

Link to comment
Share on other sites

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.