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
[/b]
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" );
Se meni cini ili je svugdje zatvorena zagrada ranije?
[pawn]strcat( DialogStrgEx, ""PLAVA"1) "BELA"Mapanje kuce "PLAVA"25din/0.21Eura"BELA" po objektu\n" );[/pawn]
Evo strcat( DialogStrgEx, ""BELA"1) Ingame Statistika:\n" );
Zatvorio sam () i ne radi idalje
Ovako...
[pawn]strcat( DialogStrgEx, ""PLAVA"1. "BELA"Mapanje kuce "PLAVA"25din/0.21Eura"BELA" po objektu\n" );[/pawn]
Idalje isto...
pa jesi sve tako fix?
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" );
Kako ti je definisana bela boja
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
[pawn]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 ) );
}
}
[/pawn]
pokušaj, samo sam makeo zagrade sa sredina i zamijenio "BELA" u "col_white"
Idalje isto, ne znam sta radit vise :(
jel imaš plavu definisanu?
#define PLAVA 0xA9C4E4FF
Bump
Citat: LuGiCH poslato Februar 24, 2019, 22:02:03 POSLE PODNE
#define PLAVA 0xA9C4E4FF
Ne moze ta boja kralju mora {} a i nzm jel mora sizeof posle "" da ne baca mismatch?
Ako su ti ljudi prekli 99% problem boje zasto ne napravis te dijaloge bez boja pa probas ako ne bude greski u bojama je znaci, te posle jednu po jednu dododajes i vidis gdje je problem, MRsko cekat compile 5 min ? ili