Problem mit help System

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • ocmd:help(playerid,params[])
    {
    SendClientMessage(playerid, COLOR_GREY, "*** ACCOUNT *** /animlist /stats /messages /hitsound /skilltree /tog /handsup /pay /time /buy /scheine");
    SendClientMessage(playerid, COLOR_GREY, "*** GENERAL *** /heiraten /muteinfo /gutschein /spawnchange /gps /dropweapons /letter /carradio /uninvite");
    SendClientMessage(playerid, COLOR_GREY, "*** GENERAL *** /support /accept /eject /usedrugs /contract /fill /service /taxis /music /races /leaders");
    if(IsPlayerInFrac(playerid,1))
    {
    SendClientMessage(playerid, COLOR_GREY, ":: LSPD :: (/d)epartments (/m)egaphone /arrest /duty /frisk (/gov)ernment /ram (/su)spect");
    SendClientMessage(playerid, COLOR_GREY, ":: LSPD :: /wanted (/cu)ff /undercover /drugtest /showbadge /bk /offduty /ticket /zollcontrol");
    {
    if(IsPlayerInFrac(playerid,2))
    {
    SendClientMessage(playerid, COLOR_GREY, ":: FBI :: /d)epartments (/m)egaphone (/su)spect /wanted /ram (/cu)ff /showbadge /swat /zollcontrol");
    SendClientMessage(playerid, COLOR_GREY, ":: FBI :: /frisk /take /ticket (/gov)ernment /bk /swat /cuff /uncuff / /clear /pdmarker");
    {
    if(IsPlayerInFrac(playerid,3))
    {
    SendClientMessage(playerid, COLOR_GREY, ":: LVPD :: (/d)epartments (/m)egaphone /arrest /duty /frisk (/gov)ernment /ram (/su)spect");
    SendClientMessage(playerid, COLOR_GREY, ":: LVPD :: /wanted (/cu)ff /undercover /drugtest /showbadge /bk /offduty /ticket /zollcontrol");
    {
    if(IsPlayerInFrac(playerid,4))
    {
    SendClientMessage(playerid, COLOR_GREY, ":: LSMD :: /d)epartments /heal /duty /auftrag");
    SendClientMessage(playerid, COLOR_GREY, ":: LSMD :: /wiederbeleben /members /pakete /dach");
    {
    SendClientMessage(playerid, COLOR_GREY, "*** GENERAL *** /selldrungs, /seed, /materials, /sellgun, /sellmats");
    SendClientMessage(playerid, COLOR_WHITE, "*** Andere *** /cellphonehelp /househelp /renthelp /bizhelp /leaderhelp /fishhelp /cookhelp /orghelp");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** Hilfe *** Du kannst mit /help [Suchbegriff] die Datenbank durchsuchen");
    return 1;
    }


    Was stimmt den nicht er zeigt mir ein Klammer fehler an warum?

  • ocmd:help(playerid,params[])
    {
    if(IsPlayerInFrac(playerid,0))
    {
    SendClientMessage(playerid,.......
    }
    if(IsPlayerInFrac(playerid,1))
    {
    SendClientMessage(playerid,.......
    }



    Versuch mal sowas!

  • Hey! Das liegt daran das du "{" geöffnet hast aber nicht mehr "}" geschlossen hast.



    ocmd:help(playerid,params[]) {


    SendClientMessage(playerid, COLOR_GREY, "*** ACCOUNT *** /animlist /stats /messages /hitsound /skilltree /tog /handsup /pay /time /buy /scheine");
    SendClientMessage(playerid, COLOR_GREY, "*** GENERAL *** /heiraten /muteinfo /gutschein /spawnchange /gps /dropweapons /letter /carradio /uninvite");
    SendClientMessage(playerid, COLOR_GREY, "*** GENERAL *** /support /accept /eject /usedrugs /contract /fill /service /taxis /music /races /leaders");


    if(IsPlayerInFrac(playerid,1)) {
    SendClientMessage(playerid, COLOR_GREY, ":: LSPD :: (/d)epartments (/m)egaphone /arrest /duty /frisk (/gov)ernment /ram (/su)spect");
    SendClientMessage(playerid, COLOR_GREY, ":: LSPD :: /wanted (/cu)ff /undercover /drugtest /showbadge /bk /offduty /ticket /zollcontrol");
    }


    if(IsPlayerInFrac(playerid,2)) {
    SendClientMessage(playerid, COLOR_GREY, ":: FBI :: /d)epartments (/m)egaphone (/su)spect /wanted /ram (/cu)ff /showbadge /swat /zollcontrol");
    SendClientMessage(playerid, COLOR_GREY, ":: FBI :: /frisk /take /ticket (/gov)ernment /bk /swat /cuff /uncuff / /clear /pdmarker");
    }


    if(IsPlayerInFrac(playerid,3)) {
    SendClientMessage(playerid, COLOR_GREY, ":: LVPD :: (/d)epartments (/m)egaphone /arrest /duty /frisk (/gov)ernment /ram (/su)spect");
    SendClientMessage(playerid, COLOR_GREY, ":: LVPD :: /wanted (/cu)ff /undercover /drugtest /showbadge /bk /offduty /ticket /zollcontrol");
    }


    if(IsPlayerInFrac(playerid,4)) {
    SendClientMessage(playerid, COLOR_GREY, ":: LSMD :: /d)epartments /heal /duty /auftrag");
    SendClientMessage(playerid, COLOR_GREY, ":: LSMD :: /wiederbeleben /members /pakete /dach");
    }


    SendClientMessage(playerid, COLOR_GREY, "*** GENERAL *** /selldrungs, /seed, /materials, /sellgun, /sellmats");
    SendClientMessage(playerid, COLOR_WHITE, "*** Andere *** /cellphonehelp /househelp /renthelp /bizhelp /leaderhelp /fishhelp /cookhelp /orghelp");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** Hilfe *** Du kannst mit /help [Suchbegriff] die Datenbank durchsuchen");
    return 1;


    }


    Ich hoffe ich konnte dir Helfen und dein Problem ist beseitigt.


    Mit freundlichen Grüßen
    zRy