[GameMode] Attack-Defend (A/D | DM) With .pwn
#40

Quote:
Originally Posted by MA_proking
View Post
Code:
C:\Documents and Settings\PRABHAT ZONE\My Documents\Downloads\attdef.pwn(15434) : error 025: function heading differs from prototype
C:\Documents and Settings\PRABHAT ZONE\My Documents\Downloads\attdef.pwn(15435) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
This error coming everytime. Any Solution?

pawn Code:
#define ANTICHEAT       1   //If you want Whitetiger's Anti-Cheat, put 1 else 0.
#define PLUGINS         1   //If you want to use plugins then put 1 else leave 0.
#define INTROTEXT       1   //Adds intro textdraw.
#define MYSQL           1   //Use MySQL system
#define STATS           1   //Shows ESL player stats from duels and VERSUS.
#define OBJECTS         1   //Loads extra objects/maps

forward OnPlayerLogin(Result:result, playerid);
public OnPlayerLogin(Result:result, playerid) {

    if(!IsPlayerConnected(playerid)) return 1;

    if(!sql_num_rows(result)) {
        SendClientMessage(playerid,-1,"{FFFFFF}Error: {0099FF}Wrong Password. Please try again.");
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{FFFFFF}Login Dialog","{FFFFFF}Type your password below to log in:","Login","Leave");
        return 1;
    }
    Player[playerid][Level] = sql_get_field_assoc_int(result, "Level");
    Player[playerid][Weather] = sql_get_field_assoc_int(result, "Weather");
    Player[playerid][Time] = sql_get_field_assoc_int(result, "Time");
    Player[playerid][ChatChannel] = sql_get_field_assoc_int(result, "ChatChannel");
    Player[playerid][NetCheck] = sql_get_field_assoc_int(result, "NetCheck");
    Player[playerid][Widescreen] = (sql_get_field_assoc_int(result, "Widescreen") == 0 ? false : true);
    Player[playerid][HitSound] = sql_get_field_assoc_int(result, "HitSound");
    Player[playerid][GetHitSound] = sql_get_field_assoc_int(result, "GetHitSound");


    Player[playerid][Logged] = true;

    new iString[180];
    SendClientMessage(playerid,-1, "You have successfully logged in.");
    format(iString, sizeof(iString), "Level: %d | Weather: %d | Time: %d | Chat Channel: %d | Net Check: %d | HitSound: %d | Get HitSound: %d", Player[playerid][Level], Player[playerid][Weather], Player[playerid][Time], Player[playerid][ChatChannel], Player[playerid][NetCheck], Player[playerid][HitSound], Player[playerid][GetHitSound]);
    SendClientMessage(playerid, -1, iString);
   
    #if INTROTEXT == 0
    if(ESLMode == false) SpawnConnectedPlayer(playerid, 0);
    else {

        ESLHelpDialog(playerid);
    }
    #else
    OnPlayerRequestClass(playerid, 0);
    #endif

    return 1;

}
Put the ANTICHEAT as 0 and then try
Reply


Messages In This Thread
Attack-Defend (A/D | DM) With .pwn - by TeK062 - 03.04.2013, 19:03
Re: Attack-Defend (A/D | DM) With .pwn - by punner - 03.04.2013, 22:08
Re: Attack-Defend (A/D | DM) With .pwn - by Pottus - 03.04.2013, 22:35
Re: Attack-Defend (A/D | DM) With .pwn - by Xoomer - 04.04.2013, 03:14
Re: Attack-Defend (A/D | DM) With .pwn - by DarkShade705 - 04.04.2013, 06:01
Re: Attack-Defend (A/D | DM) With .pwn - by Fredrick - 04.04.2013, 06:06
Re: Attack-Defend (A/D | DM) With .pwn - by DarkShade705 - 04.04.2013, 06:09
Re: Attack-Defend (A/D | DM) With .pwn - by TeK062 - 04.04.2013, 09:05
Re: Attack-Defend (A/D | DM) With .pwn - by DarkShade705 - 04.04.2013, 10:03
Re: Attack-Defend (A/D | DM) With .pwn - by Pranesh - 05.04.2013, 13:30
Re: Attack-Defend (A/D | DM) With .pwn - by DaRk_RaiN - 05.04.2013, 14:19
Re: Attack-Defend (A/D | DM) With .pwn - by Pranesh - 06.04.2013, 07:57
Re: Attack-Defend (A/D | DM) With .pwn - by ParanoidZ - 06.04.2013, 08:11
Re: Attack-Defend (A/D | DM) With .pwn - by Proph3t - 06.04.2013, 08:26
Re: Attack-Defend (A/D | DM) With .pwn - by cofi99 - 13.06.2013, 22:14
Re: Attack-Defend (A/D | DM) With .pwn - by gogokickup - 15.06.2013, 15:20
Re: Attack-Defend (A/D | DM) With .pwn - by hossa - 15.06.2013, 22:33
Re: Attack-Defend (A/D | DM) With .pwn - by iHaze. - 15.06.2013, 23:11
Re: Attack-Defend (A/D | DM) With .pwn - by XtremeR - 16.06.2013, 00:12
Respuesta: Attack-Defend (A/D | DM) With .pwn - by Samp4lifes - 20.06.2013, 01:38
Re: Attack-Defend (A/D | DM) With .pwn - by DJTunes - 20.06.2013, 02:15
Re: Attack-Defend (A/D | DM) With .pwn - by SwisherSweet - 20.06.2013, 02:18
Re: Attack-Defend (A/D | DM) With .pwn - by denom - 20.06.2013, 07:57
Re: Attack-Defend (A/D | DM) With .pwn - by Niko_boy - 20.06.2013, 08:18
Re: Attack-Defend (A/D | DM) With .pwn - by TeK062 - 03.07.2013, 09:58
Re: Attack-Defend (A/D | DM) With .pwn - by Knight_Rider - 05.07.2013, 16:41
Re: Attack-Defend (A/D | DM) With .pwn - by TeK062 - 07.07.2013, 12:15
Re: Attack-Defend (A/D | DM) With .pwn - by kN1GhT - 07.07.2013, 12:41
Re: Attack-Defend (A/D | DM) With .pwn - by Rapha3L - 07.07.2013, 12:44
Re: Attack-Defend (A/D | DM) With .pwn - by MiGu3X - 08.07.2013, 10:28
Re: Attack-Defend (A/D | DM) With .pwn - by BoU3A - 11.07.2013, 20:29
Re: Attack-Defend (A/D | DM) With .pwn - by Rohlik - 11.07.2013, 20:36
Re: Attack-Defend (A/D | DM) With .pwn - by mcpookiee - 12.07.2013, 15:41
Re: Attack-Defend (A/D | DM) With .pwn - by TeK062 - 13.07.2013, 02:45
Re: Attack-Defend (A/D | DM) With .pwn - by mcpookiee - 14.07.2013, 11:06
Re: Attack-Defend (A/D | DM) With .pwn - by Vaishnav - 14.07.2013, 11:46
Re: Attack-Defend (A/D | DM) With .pwn - by MA_proking - 14.07.2013, 13:19
Re: Attack-Defend (A/D | DM) With .pwn - by arititlez - 14.07.2013, 16:34
Re: Attack-Defend (A/D | DM) With .pwn - by [ABK]Antonio - 15.07.2013, 10:18
Re: Attack-Defend (A/D | DM) With .pwn - by TeK062 - 16.07.2013, 09:26
Re: Attack-Defend (A/D | DM) With .pwn - by JustMe.77 - 18.12.2015, 15:16
Re: Attack-Defend (A/D | DM) With .pwn - by Andres4357 - 20.12.2015, 14:53
Re: Attack-Defend (A/D | DM) With .pwn - by Krishhna - 26.06.2016, 13:01
Re: Attack-Defend (A/D | DM) With .pwn - by BlackbirdXd - 27.06.2016, 03:43
Re: Attack-Defend (A/D | DM) With .pwn - by NothingLOse - 08.10.2016, 09:18
Re: Attack-Defend (A/D | DM) With .pwn - by Dutchnian - 13.11.2016, 08:51
Re: Attack-Defend (A/D | DM) With .pwn - by s4kuL - 23.11.2016, 03:17
Respuesta: Re: Attack-Defend (A/D | DM) With .pwn - by vulgo - 15.01.2017, 17:23

Forum Jump:


Users browsing this thread: 2 Guest(s)