PDA

View Full Version : Problem With Admin System


Kostas'
05/10/2011, 04:54 PM
I tried to compile it and I got these errors


C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\pawno\include\foreach.inc(435) : error 017: undefined symbol "IsPlayerNPC"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\pawno\include\foreach.inc(626) : error 017: undefined symbol "IsPlayerNPC"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(788) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(1940) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(1956) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(1964) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(1972) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(1980) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(1996) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2004) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2201) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2246) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2252) : error 017: undefined symbol "IsPlayerNPC"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2694) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2710) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2719) : error 017: undefined symbol "DeletePlayer3DTextLabel"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2867) : error 017: undefined symbol "IsPlayerNPC"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(2888) : error 017: undefined symbol "Attach3DTextLabelToPlayer"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3029) : warning 235: public function lacks forward declaration (symbol "OnRconLoginAttempt")
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3102) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3065) : warning 203: symbol is never used: "playerid"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3113) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3146) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3430) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3605) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3631) : error 017: undefined symbol "CreatePlayer3DTextLabel"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3631) : warning 213: tag mismatch
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3683) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3684) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(3729) : error 017: undefined symbol "ShowPlayerDialog"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

Please help

Libra_PL
05/10/2011, 04:56 PM
You need to download lastest include files from SA-MP main website.

Swizzzy
05/10/2011, 05:05 PM
You need to download lastest include files from SA-MP main website.


Umm, No? lol.

It's a possible Bracket miss-place, Try finding the incorrect bracket & fixing it.

Libra_PL
05/10/2011, 05:08 PM
Umm, No? lol.

It's a possible Bracket miss-place, Try finding the incorrect bracket & fixing it.

You're wrong. As you see, those errors are about functions made from 0.3a, not earlier. And, they appear ONLY for stock functions. For example, incorrect bracket will make errors only of stock functions (like GetName or SendMessageToAdmins - it's an example).

EDIT: And:

C:\Documents and Settings\orion\Τα έγγραφά μου\Downloads\samp03csvr_R2-2_win32 (1)\filterscripts\0Admin.pwn(788) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")

That says, OnPlayerUpdate doesn't exists in their includes/files. This function was added in 0.3a, so that explains Kostas have includes from 0.2X or earlier versions :)

Kingunit
05/10/2011, 05:10 PM
#include <a_samp>

Libra_PL
05/10/2011, 05:15 PM
#include <a_samp>


Do you think that he's not using this include? Look, for example - CreatePlayer3dTextLabel normally needs [MAX_PLAYERS] in a variable, because it also uses DeletePlayer3dTextLabel to remove it. Without #include <a_samp> it will create errors, such as unknown symbol MAX_PLAYERS.

Kostas'
05/10/2011, 05:19 PM
//Main Include
#include <a_samp>


/*-----------------------------------------------
Don't change this otherwise whirlpool won't work!*/
#define MAX_INI_ENTRY_TEXT 130
#undef MAX_PLAYER_NAME
#define MAX_PLAYER_NAME 24
/*-----------------------------------------------*/

//Includes
#include < YSI/Y_ini >
#include < sscanf2 >
#include < zcmd >
#include < foreach >
#include < regex >

the <a_samp> already include

================================================

EDIT: Also, Libra "Last edited by Zh3r0; 26/08/2011 at 01:11 AM. Reason: IMPORTANT NEWS!"I guess that he has upload the newest versions.

Libra_PL
05/10/2011, 05:21 PM
Well, do that what I said previously :) Replace old includes with the new ones in SA-MP 0.3c server file in main website (http://www.sa-mp.com/download - or downloads, I don't remember).

Kostas'
05/10/2011, 05:59 PM
I replace them as i could find but still the same