Szerző Téma: /cmds parancsokt  (Megtekintve 910 alkalommal)

/cmds parancsokt
« Dátum: 2013. április 20. - 13:27:10 »
0 Show voters
nekem baj van a /cmds parancsok mutatasaval.Lenagyarositottam es valamiert a 3lvl parancsokig mutatja a parancsokat.A tobbi (4,5 lvl) parancsot nem mutatja de meg a harmast semfejezi be teljesen.Aki tud segiteni azt megkerem hogy irjon.
A valaszokert koszonet elore is.
« Utoljára szerkesztve: 2013. április 20. - 21:53:55 írta norbi1996 »

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
/cmds parancsokt
« Válasz #1 Dátum: 2013. április 20. - 13:42:06 »
0 Show voters
Mert csak 3lvl -ig van bele írva

/cmds parancsokt
« Válasz #2 Dátum: 2013. április 20. - 13:49:27 »
0 Show voters
5 lvl-ig van beleirva.

Nem elérhető doboka98

  • 1002
    • Profil megtekintése
/cmds parancsokt
« Válasz #3 Dátum: 2013. április 20. - 15:36:55 »
0 Show voters
Egy sorba nem fér ki az egész. Írd 2 SendClientMessage-el.

/cmds parancsokt
« Válasz #4 Dátum: 2013. április 20. - 15:56:54 »
0 Show voters
Es azt hogy kell ugy irni ?

Nem elérhető Kovacs_Richard

  • 1743
  • HRP Fejlesztő
  • Discord: Kovacs_Richard#0321
    • Profil megtekintése
    • Hun Role Play Web
/cmds parancsokt
« Válasz #5 Dátum: 2013. április 20. - 15:58:44 »
0 Show voters
SendClientMessage(playerid,COLOR,\"Túl hosszú szöveg\");

 
helyett:
 
SendClientMessage(playerid,COLOR,\"Túl hosszú\");
SendClientMessage(playerid,COLOR,\"szöveg\");
Régóta nem tevékenykedem, mint SA-MP scripter.
HRP Fejlesztő.

Nem elérhető doboka98

  • 1002
    • Profil megtekintése
/cmds parancsokt
« Válasz #6 Dátum: 2013. április 20. - 15:58:56 »
0 Show voters
A szöveg felénél lezárod a SendClientMessage-t. És kezdesz egy újat. Itt egy példa:
 
SendClientMessage(playerid, -1, \"Üdv a szerveren\");

/cmds parancsokt
« Válasz #7 Dátum: 2013. április 20. - 19:08:27 »
0 Show voters
de itt:
new ACommands[][TCommands] =           van.Akkor  ezt hogy csinaljam?

/cmds parancsokt
« Válasz #8 Dátum: 2013. április 20. - 19:51:02 »
0 Show voters
Idézetet írta: norbi1996 date=1366477707\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"36343\" data-ipsquote-contentclass=\"forums_Topic
de itt:
new ACommands[][TCommands] =           van.Akkor  ezt hogy csinaljam?
 
PPC-t használsz?
Azért kérdem, mert abba láttam ilyet.
Ha igen akkor a PPC_PlayerCommands cmds parancsnál keresd.

/cmds parancsokt
« Válasz #9 Dátum: 2013. április 20. - 20:15:24 »
0 Show voters
COMMAND:cmds(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, \"/cmds\", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
CommandList_Create(playerid); // Create a list of commands (only the first 4 commands) and show the dialog
}
else
    return 0;
// Let the server know that this was a valid command
return 1;
}

 
Es itt?Mit kell javitani?

/cmds parancsokt
« Válasz #10 Dátum: 2013. április 20. - 20:39:44 »
0 Show voters
COMMAND:cmds(playerid, params[])
{
        // Send the command to all admins so they can see it
        SendAdminText(playerid, \"/cmds\", params);
        // Check if the player has logged in
        if (APlayerData[playerid][LoggedIn] == true)
        {
                SendClientMessage(playerid, -1, \"Hosszú szöveg\");
                SendClientMessage(playerid, -1, \"Szöveg\");
        }
        else
            return 0;
        // Let the server know that this was a valid command
        return 1;
}

 
Erre fog dobni egy errort vagy warningot.Keresd meg majd, hogy hol és ott is töröld ki ami ehhez tartozik.

/cmds parancsokt
« Válasz #11 Dátum: 2013. április 20. - 20:44:14 »
0 Show voters
es a szoveg helyere mit tehuek?

Dupla hozzászólás automatikusan összefûzve. ( 2013. április 20. - 20:48:44 )

de igy nem jo mert nem tablazatba irja ki ahem a parbeszedhez teszi.
mugy nem errorolt
« Utoljára szerkesztve: 2013. április 20. - 20:48:44 írta norbi1996 »

/cmds parancsokt
« Válasz #12 Dátum: 2013. április 20. - 21:19:37 »
0 Show voters
Neked Dialogba kell?
Akkor ami az eredeti volt azt tedd vissza és a PPC_Dialogsba keresd meg a stats dialogot és a DIALOG_LIST-et írd át DIALOG_MSGBOX-ra.Ha még úgyis kevés lenne akkor csinálj egy /cmds2 parancsot az 1. mintájára.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal