some basic dialog errors
#1

title says
nightmare for every scripter:
PHP код:
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(707) : error 002only a single statement (or expressioncan follow each "case"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(707) : error 029invalid expressionassumed zero
C
:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : warning 215expression has no effect
C
:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : warning 215expression has no effect
C
:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : error 001expected token";"but found ")"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : error 029invalid expressionassumed zero
C
:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(708) : warning 215expression has no effect
C
:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(709) : warning 217loose indentation
C
:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(727) : error 037invalid string (possibly non-terminated string)
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(727) : error 017undefined symbol "Bus"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(727) : error 017undefined symbol "vozac"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(727) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
9 Errors

PHP код:
    if(dialogid == DIALOG_ATELE)
    {
        if(
listitem == 1)
        {
            switch(
listitem)
            {
                
"Grove Street Families\n\
                Yakuza\n\
                Ruska Mafija\n\
                Ballas\n\
                Aztecas\n\
                Policija\n\
                SAJ\n\
                Vagosi\n\
                UNPROFOR\n\
                Admin baza\n"
,  // errors HERE! line 707
                
"Odaberi","Izlaz");
            {
        {
        if(
listitem == 2)
        {
            switch(
listitem)
            {
                
"Bus vozac\n\
                Taxi vozac\n\
                Smecar\n\
                Elektricar\n\
                Kamiondzija\n\
                Automehanicar\n\
                Sumar\n\
                Doktor\n\
                Vatrogasci\n\
                Gradjevinci\n\
                Kurir\n\
                Mornarica\n\
                Novinari\n\",
                "
Odaberi","Izlaz");         //errors a line above but i for some reasons i couldnt comment it
            }
        }
        if(listitem == 3)
        {
            SetPlayerPos(playerid,419.0551,-1564.9272,27.5752)
        }
        if(listitem == 4)
        {
            switch(listitem)
            {
                "
Skola\n Banka\n Auto skola\n Burg\n Opstina\n Ammunation\n Glen Park\n Zlatara\n Plaza\n Disko\n Pijaca/Auto pijaca\n Glavna trafika\n Bolnica\n Marina\n Garatzni centar/hotel",
                "
Odaberi,"Izlaz");
            }
        }
    }
    switch(
dialogid)
    {
        case 
DIALOG_ORG:
        {
            if(
response)
            {
                case 
0SetPlayerPos(playerid,2420.8647,-1668.8928,13.5438)
                case 
1SetPlayerPos(playerid,1246.1887,-741.8353,94.7851)
                case 
2SetPlayerPos(playerid,2717.1182,-2399.8020,13.6328)
                  case 
3SetPlayerPos(playerid,2244.0034,-1230.9122,23.9769)
                case 
4SetPlayerPos(playerid,1736.6313,-2106.9263,13.5469)
                case 
5SetPlayerPos(playerid,1539.3510,-1682.2202,13.5469)
                case 
6SetPlayerPos(playerid,1140.9135,-1203.8973,19.1277)
                case 
7SetPlayerPos(playerid,2345.9319,-1165.2333,27.3034)
                case 
8SetPlayerPos(playerid,1140.9135,-1203.8973,19.1277//ZAMJENI LOKACIJU
                
case 9SetPlayerPos(playerid,1140.9135,-1203.8973,19.1277//ZAMJENI LOKACINJU
            
}
        }
    }
    switch(
dialogid)
    {
        case 
DIALOG_POSLOVI:
        {
            if(
response)
            {
                case 
0SetPlayerPos(playerid,1814.2462,-1901.5500,13.5736)
                case 
1SetPlayerPos(playerid,932.3495,-1211.0541,16.9109)
                case 
2SetPlayerPos(playerid,1663.9667,-1560.8713,13.5469)
                case 
3SetPlayerPos(playerid,1970.0997,-1974.6549,13.5469)
                case 
4SetPlayerPos(playerid,-91.2065,-1131.1624,1.1154)
                case 
5SetPlayerPos(playerid,-52.7558,-1588.2860,3.0132)
                case 
6SetPlayerPos(playerid,1330.2478,-708.1716,91.8973)
                case 
7SetPlayerPos(playerid,1187.6067,-1352.2944,13.5695)
                case 
8SetPlayerPos(playerid,1763.3704,-1476.3431,13.4946)
                case 
9SetPlayerPos(playerid,2349.6953,-1756.2948,13.5469)
                case 
10SetPlayerPos(playerid,2845.3950,-1107.4475,24.4182)
                case 
11SetPlayerPos(playerid,769.2012,-1327.3502,13.5469)
                case 
12SetPlayerPos(playerid,769.2012,-1327.3502,13.5469)
            }
        }
    }
    switch(
dialogid)
    {
        case 
DIALOG_OL:
        {
            if(
response)
            {
                case 
0SetPlayerPos(playerid,1453.4049,-1028.1321,23.8281)
                case 
1SetPlayerPos(playerid,1453.4049,-1028.1321,23.8281)
                case 
2SetPlayerPos(playerid,1453.4049,-1028.1321,23.8281)
                case 
3SetPlayerPos(playerid,1217.1610,-927.5590,42.8858)
                case 
4SetPlayerPos(playerid,1474.4646,-1738.8673,13.5469)
                case 
5SetPlayerPos(playerid,1363.3765,-1276.8026,13.5469)
                case 
6SetPlayerPos(playerid,1886.8024,-1169.0966,23.9904)
                case 
7SetPlayerPos(playerid,1085.8148,-1704.7716,13.5469)
                case 
8SetPlayerPos(playerid,567.6815,-1845.5068,5.0693)
                case 
9SetPlayerPos(playerid,1827.7596,-1687.0818,13.5469)
                case 
10SetPlayerPos(playerid,2145.1516,-1120.5209,25.2938)
                case 
11SetPlayerPos(playerid,2145.1516,-1120.5209,25.2938//ZAMJENI LOKACIJU
                
case 12SetPlayerPos(playerid,2145.1516,-1120.5209,25.2938//ZAMJENI LOKACIJU
                
case 13SetPlayerPos(playerid,2145.1516,-1120.5209,25.2938//ZAMJENI LOKACIJU
                
case 14SetPlayerPos(playerid,337.4672,-1526.0035,33.2851)
            }
        }
    }
    return 
1;

and probably strangesrt error
PHP код:
C:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP\Server\pawno\include\sscanf2.inc(203) : error 017undefined symbol "SSCANF_OnGameModeInit" 
PHP код:
CMD:setlevel(playerid,params[])
{
    new 
id,level,msg[128],msg2[128],name[MAX_PLAYER_NAME];
    if(
IsPlayerAdmin(playerid))
    {
        if(
sscanf(params,"ud",id,level)) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba /setlevel [id/name] [level] !");
        else if(
level 5) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Najveci admin level je 5!");
        else
        {
            
PlayerInfo[id][pAdmin] = level;
            
format(msg,sizeof(msg),"Cestitamo! Sada ste admin level %d!");
            
SendClientMessage(id,COLOR_GREEN,msg);
            
GetPlayerName(id,name,sizeof(name)); // error here line 203
            
format(msg2,sizeof(msg2),"[RMT:RP]:Uspijesno ste postavili Admina igracu %s ,sa levelom %d!",name,level);
            
SendClientMessage(playerid,COLOR_GREEN,msg2);
        }
    }
    else
    {
        
SendClientMessage(playerid,COLOR_RED,"[RMT:RP]Morate biti Admin da koristis ovu komandu!");
    }
    return 
1;

DONT YOU SAY I DONT KNOW PARAMETERS I JUST PROBABLY SCREWED ON OBVIOUS PLACEC
NOTe: i have more dialogs above 1 i sent
Reply
#2

Line 707 should be:
Код:
Admin baza\n\",
EDIT: You forgot something here.
PHP код:
if(listitem == 4
        { 
            switch(
listitem
            { 
                
"Skola\n Banka\n Auto skola\n Burg\n Opstina\n Ammunation\n Glen Park\n Zlatara\n Plaza\n Disko\n Pijaca/Auto pijaca\n Glavna trafika\n Bolnica\n Marina\n Garatzni centar/hotel"
                
"Odaberi","Izlaz"); 
            } 
        } 
Reply
#3

ty fixed it still got these errors
PHP код:
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(707) : error 037invalid string (possibly non-terminated string)
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(707) : error 017undefined symbol "Grove"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(707) : error 017undefined symbol "Street"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(707) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


5 Errors

Reply
#4

Can you post line number 707?
Reply
#5

Try this:
EDITED:
PHP код:
if(dialogid == DIALOG_ATELE)
{
    if(
listitem == 1)
    {
        switch(
listitem)
        {
            
"Grove Street Families\n\
            Yakuza\n\
            Ruska Mafija\n\
            Ballas\n\
            Aztecas\n\
            Policija\n\
            SAJ\n\
            Vagosi\n\
            UNPROFOR\n\
            Admin baza\n"
,
            
"Odaberi","Izlaz");
        }
    }
    if(
listitem == 2)
    {
        switch(
listitem)
        {
            
"Bus vozac\n\
            Taxi vozac\n\
            Smecar\n\
            Elektricar\n\
            Kamiondzija\n\
            Automehanicar\n\
            Sumar\n\
            Doktor\n\
            Vatrogasci\n\
            Gradjevinci\n\
            Kurir\n\
            Mornarica\n\
            Novinari\n"
,
            
"Odaberi","Izlaz");
        }
    }
    if(
listitem == 3)
    {
        
SetPlayerPos(playerid,419.0551,-1564.9272,27.5752)
    }
    if(
listitem == 4)
    {
        switch(
listitem)
        {
            
"Skola\n Banka\n Auto skola\n Burg\n Opstina\n Ammunation\n Glen Park\n Zlatara\n Plaza\n Disko\n Pijaca/Auto pijaca\n Glavna trafika\n Bolnica\n Marina\n Garatzni centar/hotel",
            
"Odaberi","Izlaz");
        }
    }

Reply
#6

yep 1 error fixed 4 left
those 4 were from before i sent
line 707 is "Grove Street Families\n\ line
Reply
#7

Admin baza\n"
Replace with
Admin baza",
Novinarian\n"
Replace with
Novinarian",
Reply
#8

Post the errors there!
Reply
#9

26 errors
Reply
#10

n00blek, don't listen to Mohaaa, it will **** ** your script!
Can you paste the errors there?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)