SA-MP Forums Archive
Dialog Problem [HELP] [Not Fixed] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Problem [HELP] [Not Fixed] (/showthread.php?tid=610499)



Dialog Problem [HELP] [Fixed] - Hapukoorepakk - 24.06.2016

Код:
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?


Re: Dialog Problem [HELP] [Not Fixed] - zPain - 24.06.2016

You forgot the opening brace after if(response).


Re: Dialog Problem [HELP] [Not Fixed] - Hapukoorepakk - 24.06.2016

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



Re: Dialog Problem [HELP] [Not Fixed] - brianvans089 - 25.06.2016

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