Dialog Problem [HELP] [Not Fixed]
#1

Код:
C:\Users\Alvar\Desktop\Serverid\Hapu Drifting (Tegemisel)\gamemodes\H-Drift.pwn(255) : warning 217: loose indentation
C:\Users\Alvar\Desktop\Serverid\Hapu Drifting (Tegemisel)\gamemodes\H-Drift.pwn(259) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Alvar\Desktop\Serverid\Hapu Drifting (Tegemisel)\gamemodes\H-Drift.pwn(265) : error 054: unmatched closing brace ("}")
C:\Users\Alvar\Desktop\Serverid\Hapu Drifting (Tegemisel)\gamemodes\H-Drift.pwn(267) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Код:
        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )

                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pSularaha]);
                    SetSpawnInfo(playerid, 217, 0, 1642.1584, -2334.1926, -2.6797, 359.7559, 0, 0, 0, 0, 0, 0);
                    SpawnPlayer(playerid);
                }
                else
                {
                    Kick(playerid);
                }
                return 1;
            }
        }
    }
    return 1;
}
What's wrong?
Reply
#2

You forgot the opening brace after if(response).
Reply
#3

Fixed.

Dialog Script:
Код:
        case DIALOG_LOGIN:
        {
            if(response) return Kick (playerid);
            if(response)

                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pSularaha]);
                    SetSpawnInfo(playerid, 217, 0, 1642.1584, -2334.1926, -2.6797, 359.7559, 0, 0, 0, 0, 0, 0);
                    SpawnPlayer(playerid);
                }
    }
    return 1;
}
And Added:
Код:
#pragma tabsize 0
Reply
#4

Help me in my posy https://sampforum.blast.hk/showthread.php?tid=610511
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)