20.06.2013, 02:15
Nice job.
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.
#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;
}
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. pawn Code:
|