GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: norbi1996 - 2013. április 20. - 13:27:10

Cím: /cmds parancsokt
Írta: norbi1996 - 2013. április 20. - 13:27:10
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.
Cím: /cmds parancsokt
Írta: ZSOLTI99 - 2013. április 20. - 13:42:06
Mert csak 3lvl -ig van bele írva
Cím: /cmds parancsokt
Írta: norbi1996 - 2013. április 20. - 13:49:27
5 lvl-ig van beleirva.
Cím: /cmds parancsokt
Írta: doboka98 - 2013. április 20. - 15:36:55
Egy sorba nem fér ki az egész. Írd 2 SendClientMessage-el.
Cím: /cmds parancsokt
Írta: norbi1996 - 2013. április 20. - 15:56:54
Es azt hogy kell ugy irni ?
Cím: /cmds parancsokt
Írta: Kovacs_Richard - 2013. április 20. - 15:58:44
SendClientMessage(playerid,COLOR,\"Túl hosszú szöveg\");

 
helyett:
 
SendClientMessage(playerid,COLOR,\"Túl hosszú\");
SendClientMessage(playerid,COLOR,\"szöveg\");
Cím: /cmds parancsokt
Írta: doboka98 - 2013. április 20. - 15:58:56
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\");
Cím: /cmds parancsokt
Írta: norbi1996 - 2013. április 20. - 19:08:27
de itt:
new ACommands[][TCommands] =           van.Akkor  ezt hogy csinaljam?
Cím: /cmds parancsokt
Írta: halaloszto100 - 2013. április 20. - 19:51:02
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.
Cím: /cmds parancsokt
Írta: norbi1996 - 2013. április 20. - 20:15:24
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?
Cím: /cmds parancsokt
Írta: halaloszto100 - 2013. április 20. - 20:39:44
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.
Cím: /cmds parancsokt
Írta: norbi1996 - 2013. április 20. - 20:44:14
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
Cím: /cmds parancsokt
Írta: halaloszto100 - 2013. április 20. - 21:19:37
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.