Problem oko dialoga

Započeo LuGiCH
24. Feb. 2019. Zaključano
1,109
pregleda
16
postova
LuGiCH
3
Hustler
24. Feb. 2019.
Problem(error/warning):
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : warning 215: expression has no effect
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: ";", but found "-string-"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : warning 215: expression has no effect
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: ";", but found ")"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : fatal error 107: too many error messages on one line


Dio skripte:
	        if( listitem == 0 ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

strcat( DialogStrgEx, ""BELA"Ingame Statistika:\n" );
strcat( DialogStrgEx, ""PLAVA"1) "BELA"Level UP - "PLAVA"180din/1.5Eura\n2) "BELA"1 milion - "PLAVA"300din/2.5Eura\n3) "BELA"5 miliona - "PLAVA"1200din/10E\n" );
strcat( DialogStrgEx, ""PLAVA"4) "BELA"10miliona - "PLAVA"2400din/20Eura\n5) "col_white"Obicna promena imena - "PLAVA"600din/5Eura\n6) "BELA"Specijalno ime - "PLAVA"3000din/25Eura\n" );
strcat( DialogStrgEx, ""PLAVA"7) "BELA"Privatna organizacija koja traje mesec dana - "PLAVA"1200din/10Eura\n\n"col_white"Mapanje:\n" );
strcat( DialogStrgEx, ""PLAVA"1) "BELA"Mapanje kuce "PLAVA"25din/0.21Eura"BELA" po objektu\n" );
strcat( DialogStrgEx, ""PLAVA"2) "BELA"Pokretna kapija "PLAVA"600din/5Eura\n3) "BELA"Donatorska kuca - "PLAVA"1200din/10Eura\n4) "BELA"Donatorska vila - "PLAVA"2400din/20Eura\n" );

    SPD( playerid, dialog_DONATE_1, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "Dalje" );

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
}
if( listitem == 1 ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

strcat( DialogStrgEx, ""BELA"Kontakt lista kome se obracate za donacije:\n\n" );
strcat( DialogStrgEx, ""BELA"-----\n" );

SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));

}
}
}
else if( dialogid == dialog_DONATE_1 ) {

    if( !response ) {

        strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

strcat( DialogStrgEx, ""BELA"VIP leveli:\n\n" );
strcat( DialogStrgEx, ""PLAVA"1) "col_white"VIP Level 1 - "PLAVA"250din/2Eura\n2) "col_white"VIP Level 2 - "PLAVA"350din/3Eura\n3) "BELA"VIP Level 3 - "PLAVA"450/3.75Eura\n" );
strcat( DialogStrgEx, ""PLAVA"4) "col_white"VIP Level 4 - "PLAVA"600din/5Eura\n5) "col_white"VIP Level 5 - "PLAVA"1000din/8.5Eura\n\n"BELA"Automobili:\n" );
strcat( DialogStrgEx, ""PLAVA"1) "col_white"NRG - "PLAVA"3000din/25Eura\n" );
strcat( DialogStrgEx, ""PLAVA"2) "col_white"Sultan - "PLAVA"2400din/20Eura\n3) "col_white"Huntley - "PLAVA"2400din/20Eura\n4) "BELA"Bullet - "PLAVA"1800din/15Eura\n" );
strcat( DialogStrgEx, ""PLAVA"5) "col_white"Infernus - "PLAVA"1800din/15Eura\n6) "col_white"Turismo - "PLAVA"1800din/15Eura\n\n"BELA"Ostalo:\n" );
strcat( DialogStrgEx, ""PLAVA"1) "col_white"Cetvrti slot vozila - "PLAVA"600din/5Eura\n2) "col_white"Donatorske boje - "PLAVA"600din/5Eura\n\n"BELA"Imanja:\n" );
strcat( DialogStrgEx, ""PLAVA"1) "col_white"30metara - "PLAVA"550din/4.50Eura\n2) "col_white"40metara - "PLAVA"650din/6Eura\n3) "BELA"50metara - "PLAVA"900din/8.50Eura\n4) "col_white"100metara - "PLAVA"1800din/15Eura\n" );

    SPD( playerid, dialog_DONATE_1, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
    }
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): //
Ovo je line na kojem mi izlazi error
strcat( DialogStrgEx, ""BELA"Ingame Statistika:\n" );
Purda121
5
OG Legend
24. Feb. 2019.
Se meni cini ili je svugdje zatvorena zagrada ranije?
strcat( DialogStrgEx, ""PLAVA"1) "BELA"Mapanje kuce "PLAVA"25din/0.21Eura"BELA" po objektu\n" );
LuGiCH
3
Hustler
24. Feb. 2019.
Evo
	strcat( DialogStrgEx, ""BELA"1) Ingame Statistika:\n" );

Zatvorio sam () i ne radi idalje
Purda121
5
OG Legend
24. Feb. 2019.
Ovako...
strcat( DialogStrgEx, ""PLAVA"1. "BELA"Mapanje kuce "PLAVA"25din/0.21Eura"BELA" po objektu\n" );
LuGiCH
3
Hustler
24. Feb. 2019.
Idalje isto...
Purda121
5
OG Legend
24. Feb. 2019.
pa jesi sve tako fix?
LuGiCH
3
Hustler
24. Feb. 2019.
		else if( dialogid == dialog_DONATE ) {

    if( response ) {

        if( listitem == 0 ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

    strcat( DialogStrgEx, ""BELA"1.  "BELA" Ingame Statistika:\n" );
strcat( DialogStrgEx, ""PLAVA"2. "BELA"Level UP - "PLAVA"180din/1.5Eura\n2) "BELA"1 milion - "PLAVA"300din/2.5Eura\n3) "BELA"5 miliona - "PLAVA"1200din/10E\n" );
strcat( DialogStrgEx, ""PLAVA"3. "BELA"10miliona - "PLAVA"2400din/20Eura\n5) "col_white"Obicna promena imena - "PLAVA"600din/5Eura\n6) "BELA"Specijalno ime - "PLAVA"3000din/25Eura\n" );
strcat( DialogStrgEx, ""PLAVA"4. "BELA"Privatna organizacija koja traje mesec dana - "PLAVA"1200din/10Eura\n\n"col_white"Mapanje:\n" );
strcat( DialogStrgEx, ""PLAVA"5. "BELA"Mapanje kuce "PLAVA"25din/0.21Eura"BELA" po objektu\n" );
strcat( DialogStrgEx, ""PLAVA"6. "BELA"Pokretna kapija "PLAVA"600din/5Eura\n3) "BELA"Donatorska kuca - "PLAVA"1200din/10Eura\n4) "BELA"Donatorska vila - "PLAVA"2400din/20Eura\n" );

    SPD( playerid, dialog_DONATE_1, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "Dalje" );

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
}
if( listitem == 1 ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

strcat( DialogStrgEx, ""BELA"Kontakt lista kome se obracate za donacije:\n\n" );
strcat( DialogStrgEx, ""BELA"-----\n" );

SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));

}
}
}
else if( dialogid == dialog_DONATE_1 ) {

    if( !response ) {

        strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

strcat( DialogStrgEx, ""BELA"VIP leveli:\n\n" );
strcat( DialogStrgEx, ""PLAVA"1. "col_white"VIP Level 1 - "PLAVA"250din/2Eura\n2) "col_white"VIP Level 2 - "PLAVA"350din/3Eura\n3) "BELA"VIP Level 3 - "PLAVA"450/3.75Eura\n" );
strcat( DialogStrgEx, ""PLAVA"2. "col_white"VIP Level 4 - "PLAVA"600din/5Eura\n5) "col_white"VIP Level 5 - "PLAVA"1000din/8.5Eura\n\n"BELA"Automobili:\n" );
strcat( DialogStrgEx, ""PLAVA"3. "col_white"NRG - "PLAVA"3000din/25Eura\n" );
strcat( DialogStrgEx, ""PLAVA"4. "col_white"Sultan - "PLAVA"2400din/20Eura\n3) "col_white"Huntley - "PLAVA"2400din/20Eura\n4) "BELA"Bullet - "PLAVA"1800din/15Eura\n" );
strcat( DialogStrgEx, ""PLAVA"5. "col_white"Infernus - "PLAVA"1800din/15Eura\n6) "col_white"Turismo - "PLAVA"1800din/15Eura\n\n"BELA"Ostalo:\n" );
strcat( DialogStrgEx, ""PLAVA"6. "col_white"Cetvrti slot vozila - "PLAVA"600din/5Eura\n2) "col_white"Donatorske boje - "PLAVA"600din/5Eura\n\n"BELA"Imanja:\n" );
strcat( DialogStrgEx, ""PLAVA"7. "col_white"30metara - "PLAVA"550din/4.50Eura\n2) "col_white"40metara - "PLAVA"650din/6Eura\n3) "BELA"50metara - "PLAVA"900din/8.50Eura\n4) "col_white"100metara - "PLAVA"1800din/15Eura\n" );

    SPD( playerid, dialog_DONATE_1, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
    }
}

idalje
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : warning 215: expression has no effect
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: ";", but found "-string-"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : warning 215: expression has no effect
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: ";", but found ")"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : fatal error 107: too many error messages on one line

na line
strcat( DialogStrgEx, ""BELA"1.  "BELA" Ingame Statistika:\n" );
Balsa.
5
Crime Lord
24. Feb. 2019.
Kako ti je definisana bela boja
LuGiCH
3
Hustler
24. Feb. 2019.
aha, promenio sam u col_white kako je i definisano idalje isti errori
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : warning 215: expression has no effect
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: ";", but found "-string-"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : warning 215: expression has no effect
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : error 001: expected token: ";", but found ")"
C:\Users\Luka\Desktop\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(31051) : fatal error 107: too many error messages on one line
sTrumF
4
Enforcer
24. Feb. 2019.
else if( dialogid == dialog_DONATE ) {

    if( response ) {

        if( listitem == 0 ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

    strcat( DialogStrgEx, ""col_white"1.  "col_white" Ingame Statistika:\n" );
strcat( DialogStrgEx, ""PLAVA"2. "col_white"Level UP - "PLAVA"180din/1.5Eura\n2 "col_white"1 milion - "PLAVA"300din/2.5Eura\n3 "col_white"5 miliona - "PLAVA"1200din/10E\n" );
strcat( DialogStrgEx, ""PLAVA"3. "col_white"10miliona - "PLAVA"2400din/20Eura\n5 "col_white"Obicna promena imena - "PLAVA"600din/5Eura\n6 "col_white"Specijalno ime - "PLAVA"3000din/25Eura\n" );
strcat( DialogStrgEx, ""PLAVA"4. "col_white"Privatna organizacija koja traje mesec dana - "PLAVA"1200din/10Eura\n\n"col_white"Mapanje:\n" );
strcat( DialogStrgEx, ""PLAVA"5. "col_white"Mapanje kuce "PLAVA"25din/0.21Eura"col_white" po objektu\n" );
strcat( DialogStrgEx, ""PLAVA"6. "col_white"Pokretna kapija "PLAVA"600din/5Eura\n3 "col_white"Donatorska kuca - "PLAVA"1200din/10Eura\n4 "col_white"Donatorska vila - "PLAVA"2400din/20Eura\n" );

    SPD( playerid, dialog_DONATE_1, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "Dalje" );

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
}
if( listitem == 1 ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

strcat( DialogStrgEx, ""col_white"Kontakt lista kome se obracate za donacije:\n\n" );
strcat( DialogStrgEx, ""col_white"-----\n" );

SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));

}
}
}
else if( dialogid == dialog_DONATE_1 ) {

    if( !response ) {

        strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

strcat( DialogStrgEx, ""col_white"VIP leveli:\n\n" );
strcat( DialogStrgEx, ""PLAVA"1. "col_white"VIP Level 1 - "PLAVA"250din/2Eura\n2 "col_white"VIP Level 2 - "PLAVA"350din/3Eura\n3 "col_white"VIP Level 3 - "PLAVA"450/3.75Eura\n" );
strcat( DialogStrgEx, ""PLAVA"2. "col_white"VIP Level 4 - "PLAVA"600din/5Eura\n5 "col_white"VIP Level 5 - "PLAVA"1000din/8.5Eura\n\n"col_white"Automobili:\n" );
strcat( DialogStrgEx, ""PLAVA"3. "col_white"NRG - "PLAVA"3000din/25Eura\n" );
strcat( DialogStrgEx, ""PLAVA"4. "col_white"Sultan - "PLAVA"2400din/20Eura\n3 "col_white"Huntley - "PLAVA"2400din/20Eura\n4 "col_white"Bullet - "PLAVA"1800din/15Eura\n" );
strcat( DialogStrgEx, ""PLAVA"5. "col_white"Infernus - "PLAVA"1800din/15Eura\n6 "col_white"Turismo - "PLAVA"1800din/15Eura\n\n"col_white"Ostalo:\n" );
strcat( DialogStrgEx, ""PLAVA"6. "col_white"Cetvrti slot vozila - "PLAVA"600din/5Eura\n2 "col_white"Donatorske boje - "PLAVA"600din/5Eura\n\n"col_white"Imanja:\n" );
strcat( DialogStrgEx, ""PLAVA"7. "col_white"30metara - "PLAVA"550din/4.50Eura\n2 "col_white"40metara - "PLAVA"650din/6Eura\n3 "col_white"50metara - "PLAVA"900din/8.50Eura\n4) "col_white"100metara - "PLAVA"1800din/15Eura\n" );

    SPD( playerid, dialog_DONATE_1, DSMSG, D_NASLOV, DialogStrgEx, D_OK, "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
    }
}



pokušaj, samo sam makeo zagrade sa sredina i zamijenio "BELA" u "col_white"
LuGiCH
3
Hustler
24. Feb. 2019.
Idalje isto, ne znam sta radit vise  ☹️
sTrumF
4
Enforcer
24. Feb. 2019.
jel imaš plavu definisanu?
LuGiCH
3
Hustler
24. Feb. 2019.
#define PLAVA                                                        0xA9C4E4FF
LuGiCH
3
Hustler
24. Feb. 2019.
Bump
{Makenzi}
3
Hustler
24. Feb. 2019.
LuGiCH wrote on February 24, 2019, 9:02 pm:
#define PLAVA                                                        0xA9C4E4FF

Ne moze ta boja kralju mora {} a i nzm jel mora sizeof posle "" da ne baca mismatch?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha