Szerző Téma: TextDraw Hiba  (Megtekintve 412 alkalommal)

Nem elérhető BoSS

  • 816
    • Profil megtekintése
TextDraw Hiba
« Dátum: 2012. Július 28. - 16:28:19 »
0 Show voters
Sziasztok van egy kis gondom a TextDrawommal...térkép felett kéne jeleznie de nem jelzi ki.
Ez lenne az ha tudtok benne segíteni azt meg köszöném :D
 
#include <a_samp>
#include <zcmd>
#define ZOLD 0x33AA33AA
forward Changecmds();
forward ChangeTextcmds (text[]);
new Text:Textcmds;
new TextcmdsCount = 0;
#define gamemodecount 11
#define ms 5000
#define websitecount 11
#define ms 5000
#define cmdscount 11
#define ms 5000
 
public OnPlayerConnect(playerid)
{
   SendClientMessage(playerid, ZOLD,\"Térkép felett találsz egy kis segítséget!\");
   return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
   TextDrawHideForPlayer(playerid, Textcmds);
   return 1;
}
public ChangeTextcmds(text[])
{
   TextDrawHideForAll(Textcmds);
   TextDrawSetString(Textcmds,text);
   TextDrawShowForAll(Textcmds);
   return 1;
}
public Changecmds()
{
if(TextcmdsCount > cmdscount) TextcmdsCount = 0;
      switch(TextcmdsCount)
   {
       case 0:
       {
         ChangeTextcmds(\"Web:Hamarosan\");  // Ezeket átirhatod de csak ami kékkel van!!itt a /help
       }
       case 1:
       {
         ChangeTextcmds(\"Szervert a [clans.hu] biztositja\");
        }
        case 2:
       {
         ChangeTextcmds(\"Barmi gondod van /report\");
        }
        case 3:
       {
         ChangeTextcmds(\"/help\");
        }
       }
TextcmdsCount++;
}

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
TextDraw Hiba
« Válasz #1 Dátum: 2012. Július 28. - 16:30:52 »
+1 Show voters
Gondolom tedd be ezt: TextDrawShowForAll(Textcmds); az OnPlayerSpawn alá.
E: észrevettem, hogy timer sincs.
Tehát: pluszba írd az OnGameModeInit/OnFilterScriptInit alá ezt:
SetTimer(\"Changecmds\", ms, true);
« Utoljára szerkesztve: 2012. Július 28. - 16:32:50 írta Flash »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal