Jump to content
  • 0

comanda


Kingsley

Question

Am facut comanda /factions dar imi da niste erori si nu stiu de la ce sunt:

}
CMD:factions(playerid, params[])//In work
{
         if(IsPlayerConnected(playerid))
        {
        new factions[128];
        format(factions , sizeof(factions),"#\tFaction Name\tMembers\tSlots\n1.\t{456FCFFF}Police Departament\t%s\t10\n2.\t{456FCFFF}Federal Burreau Of Investigations\t%s\t10\n3.\t{456FCFFF}National Guard\t%s\t10\n\n4.\t{f86448FF}Paramedic Departament\t%s\t10\n5.\t{FFABFCFF}San News\t%s\t10\n6.\t{FFFFA8FF}Tow Car Co.\t%s\t10\n7.\t{FFFF00AA}Taxi Cab Co.\t%s\t10\n7.\t8.\t{10E056FF}School Instructors\t%s\t10\n9.\t{A5443BF3}Hitman Agency\t%s\t10\n10.\t{CC0000FF}The Triad's Mafia\t%s\t10\n11.\t{66857399}The Porrello Family\t%s\t10\n12.\t{2F2F2F99}The Sicilian Mafia\t%s\t10\n13.\t{88572499}The Russian Mafia\t%s\t10",pmembers);
        ShowPlayerDialog(DIALOG_FACTIUNI,DIALOG_STYLE_TABLIST,factions,"Exit","Select");
        }
        return 1;
}

Erorile:

C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27798) : error 075: input line too long (after substitutions)
C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27799) : error 037: invalid string (possibly non-terminated string)
C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27799) : warning 215: expression has no effect
C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27799) : error 001: expected token: ";", but found "}"
C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27799) : error 017: undefined symbol "Police"
C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27799) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

 

Retras

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

cum?

 

a gata mi-am dat seama.Stai sa incerc!

 

Tot nu:

}
CMD:factions(playerid, params[])//In work
{
         if(IsPlayerConnected(playerid))
        {
        new factions[128];
        format(factions , sizeof(factions),"#\tFaction Name\tMembers\tSlots\n1.\t{456FCFFF}Police Departament\t%s\t10\n2.\t{456FCFFF}Federal Burreau Of Investigations\t%s\t10\n3.\t{456FCFFF}National Guard\t%s\t10\n\n4.\t{f86448FF}Paramedic Departament\t%s\t10\n5.\t{FFABFCFF}San News\t%s\t10\n6.\t{FFFFA8FF}Tow Car Co.\t%s\t10",members);
        new factions2[128]
        format(factions2, sizeof(factions2),"7.\t{FFFF00AA}Taxi Cab Co.\t%s\t10\n7.\t8.\t{10E056FF}School Instructors\t%s\t10\n9.\t{A5443BF3}Hitman Agency\t%s\t10\n10.\t{CC0000FF}The Triad's Mafia\t%s\t10\n11.\t{66857399}The Porrello Family\t%s\t10\n12.\t{2F2F2F99}The Sicilian Mafia\t%s\t10\n13.\t{88572499}The Russian Mafia\t%s\t10",members);
        ShowPlayerDialog(DIALOG_FACTIUNI,DIALOG_STYLE_TABLIST,factions,factions2,"Exit","Select");
        }
        return 1;
}

Erorile:

C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27807) : error 017: undefined symbol "members"
C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27809) : error 001: expected token: ";", but found "-identifier-"
C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27809) : error 017: undefined symbol "members"
C:\Users\VICTOR\Desktop\Chestii\LCZ-Gaming RPG\gamemodes\LCZ-Gaming.pwn(27810) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Am schimbat pmembers in members pentru ca variabila members e si la comanda /members(care arata membrii online)

 

Edited by Tud0r.

Retras

Link to comment
Share on other sites

  • 0

mai bine ai pune comanda asa:

c

cmd:factions

        new sadfadsfdsafdsfasdfsa;

        sdsadsa	
        sadsadsa

        sadsa
	}
	return 1;
}


 nu se intelege nimic din comanda 

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

  • 0

Daca ai server-ul pe mysql este foarte usor sa o faci. Importa datele din baza de date si nu te mai obosii scrii numele fiecarei factiuni.

Se vor ordona singure in functie de id.

 

P.S: Sa ai factiunile ordonate corect in baza de date altfel o sa ai erori.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.