ZCMD,YSI

Započeo [][] Foxy 2k19 [][], April 20, 2019, 16:55:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning): Prvi put cu krenuti raditi sa ZCMD, koristim UP skriptu, tamo se koristi YSI komande
Dio skripte: [pawn]C:\Users\lj\Desktop\BM\pawn\include\YSI\y_commands.inc(219) : warning 201: redefinition of constant/macro (symbol "CMD:%0(%1)")
C:\Users\lj\Desktop\BM\pawn\include\YSI\y_commands.inc(220) : warning 201: redefinition of constant/macro (symbol "COMMAND")
C:\Users\lj\Desktop\BM\gamemodes\Balkan-Moon.pwn(25085) : warning 217: loose indentation
C:\Users\lj\Desktop\BM\gamemodes\Balkan-Moon.pwn(27698) : warning 202: number of arguments does not match definition
C:\Users\lj\Desktop\BM\gamemodes\Balkan-Moon.pwn(27700) : error 035: argument type mismatch (argument 2)
C:\Users\lj\Desktop\BM\gamemodes\Balkan-Moon.pwn(27701) : error 035: argument type mismatch (argument 2)
C:\Users\lj\Desktop\BM\gamemodes\Balkan-Moon.pwn(27703) : error 035: argument type mismatch (argument 2)
C:\Users\lj\Desktop\BM\gamemodes\Balkan-Moon.pwn(27704) : error 035: argument type mismatch (argument 2)[/pawn]
[pawn]CMD:gametext( playerid, params[], help )
{
    if( PlayerInfo[ playerid ][ pAdmin ] < 6 ) return SCM( playerid, "[ERROR] Nemate dozvolu za koriscenje ove komande" );
   if( AdminDuty[ playerid ] ) return SCM( playerid, "[ERROR] Morate biti na admin duznosti." );
    new string[ 128 ], style;
    if( sscanf( params, "is[128]", style, string ) ) return SCM( playerid, "[BM] /gametext [ style ][ text ]" );
    if( style == 2 ) return SCM( playerid, "Ne mozes koristiti taj style." );
    GameTextForAll( string, 10000, style );
   return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): //

Sve sam lepo uradio dodao zcmd u pawno/include, imam i pawn file to koristim radi pawn compilera brzeg.
Poslednja Izmena: April 22, 2019, 11:21:22 PRE PODNE od Bašovski
Balkan Moon v1.0 by Foxy

Owner // Scripter Balkan Moon

u Potpisu Foxy.

Ne pipaj lava Foxy, radi na BM-u :D :D :D
[4.7.2019] Respect For: Purda | Basovski | Mister Naithan | BICEL KO MI BUNTA | 7.9: Vasic[/b]

* Server [5.1.2019 Created]
* Scripter on Power Gaming
* Scripter on Night Life
* Scripter on Arena Gaming
* Scripter on duty (Balkan Moon)

[23.5.2k19] Messi u skriptanju hehe ;)
[7.8.2k19]OLD Minecraft Developer & Player (2016-2018)

#FOXYSCRIPT[/b]
MAPPER U POKUŠAJU :/[/b]

IZBACI y_Commands ?
Jer YCMD ima definiciju za CMD: tako da obrisi y_commands

One And Only
Old Member
Since AVGUST 2013. :)
GAME OVER - SCRIPTING
SINCE 2009 - 2020

Citat: LANMY.pwN poslato April 20, 2019, 17:27:34 POSLE PODNE
IZBACI y_Commands ?
Jer YCMD ima definiciju za CMD: tako da obrisi y_commands

A tebra, hoce posle raditi ono YCMD:komande itd?
Balkan Moon v1.0 by Foxy

Owner // Scripter Balkan Moon

u Potpisu Foxy.

Ne pipaj lava Foxy, radi na BM-u :D :D :D
[4.7.2019] Respect For: Purda | Basovski | Mister Naithan | BICEL KO MI BUNTA | 7.9: Vasic[/b]

* Server [5.1.2019 Created]
* Scripter on Power Gaming
* Scripter on Night Life
* Scripter on Arena Gaming
* Scripter on duty (Balkan Moon)

[23.5.2k19] Messi u skriptanju hehe ;)
[7.8.2k19]OLD Minecraft Developer & Player (2016-2018)

#FOXYSCRIPT[/b]
MAPPER U POKUŠAJU :/[/b]

Prvi put krenuo raditi u zcmd? Isti kurac samo ti je kod zcmd ide CMD:komanda(playerid,params[]), a kod ycmd YCMD:komanda(playerid, params[], help), razlika je u jednom parametru, sve ostalo je isto...

Try this
[pawn]YCMD:gametext( playerid, params[] )
{
    if( PlayerInfo[ playerid ][ pAdmin ] < 6 ) return SCM( playerid, "[ERROR] Nemate dozvolu za koriscenje ove komande" );
    if( AdminDuty[ playerid ] ) return SCM( playerid, "[ERROR] Morate biti na admin duznosti." );
    new string[ 128 ], style;
    if( sscanf( params, "is[128]", style, string ) ) return SCM( playerid, "[BM] /gametext [ style ][ text ]" );
    if( style == 2 ) return SCM( playerid, "Ne mozes koristiti taj style." );
    GameTextForAll( string, 10000, style );
    return 1;
}[/pawn]

Hocu ZCMD da uvedem a YCMD da ostane..
Balkan Moon v1.0 by Foxy

Owner // Scripter Balkan Moon

u Potpisu Foxy.

Ne pipaj lava Foxy, radi na BM-u :D :D :D
[4.7.2019] Respect For: Purda | Basovski | Mister Naithan | BICEL KO MI BUNTA | 7.9: Vasic[/b]

* Server [5.1.2019 Created]
* Scripter on Power Gaming
* Scripter on Night Life
* Scripter on Arena Gaming
* Scripter on duty (Balkan Moon)

[23.5.2k19] Messi u skriptanju hehe ;)
[7.8.2k19]OLD Minecraft Developer & Player (2016-2018)

#FOXYSCRIPT[/b]
MAPPER U POKUŠAJU :/[/b]


Ukloni y_commands i ne mozes koristiti YCMD i ZCMD zajedno, odaberi jedno  ;D

••••••••••••••••••••••••••••••••••••••••••••••••
• SA:MP Player - Since 2011 •
• Pawno Scripter - Since 2017 •
• Newbie LUA Scripter - Since 2019 •
•••••••••••••••••••••••••••••••••••••••••••••••••

Citat: [][] Foxy 2k19 [][] poslato April 20, 2019, 20:16:17 POSLE PODNE
Hocu ZCMD da uvedem a YCMD da ostane..
šta će ti 2 procesora komandi.....................................

Citat: [][] Foxy 2k19 [][] poslato April 20, 2019, 20:16:17 POSLE PODNE
Hocu ZCMD da uvedem a YCMD da ostane..
e bože šta sve nećeš vidjet i čut' ..

Batali se skriptanja sa takvim stavom... Ne moze to sto hoces  , samo jedan proces komandi moze raditi...




Give Honor To The One Who Deserve It





Ti stvarno planiras koristiti dva procesa komandi u jednom modu?
ZCMD i Y_COMMANDS sigurno ne mozes koristiti.
1. Imaces tonu errora, kao sto vec imas, zbog istih definicija.
2. Zar ti je tesko prebaciti sve YCMD u CMD ili obrnuto?
3. Kada bi se sve to na neki nacin 'izbeglo', mod bi ti usporio komande ...
• Website: www.vasic.dev
Web Development & Cyber Security

Ajd recite sad, YCMD ili CMD?
Balkan Moon v1.0 by Foxy

Owner // Scripter Balkan Moon

u Potpisu Foxy.

Ne pipaj lava Foxy, radi na BM-u :D :D :D
[4.7.2019] Respect For: Purda | Basovski | Mister Naithan | BICEL KO MI BUNTA | 7.9: Vasic[/b]

* Server [5.1.2019 Created]
* Scripter on Power Gaming
* Scripter on Night Life
* Scripter on Arena Gaming
* Scripter on duty (Balkan Moon)

[23.5.2k19] Messi u skriptanju hehe ;)
[7.8.2k19]OLD Minecraft Developer & Player (2016-2018)

#FOXYSCRIPT[/b]
MAPPER U POKUŠAJU :/[/b]

• Website: www.vasic.dev
Web Development & Cyber Security