09.06.2015, 07:59
i want to test if my admin.inc is functioning...
this is my admin.inc
i create a new command to test if it work..
but i got this error
this is my admin.inc
Код:
Admin Include v0.10 ©Armageddon@Rexz ------------------------------------------------- ================================================================================ */ //============================================================================== // Administration //============================================================================== stock PlayerInfo(playerid, pAdmin) { new tmp; new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format( string, sizeof(string),PATH,playername); INI_Int("Admin", tmp;); if((IsPlayerConnected(playerid)) && (tmp >= 1) && (tmp!= 0)) return string; else return false; }
Код:
CMD:test(playerid, params[]) { if(PlayerInfo(playerid, 1) { SendClientMessage(playerid, 0x0, "tax purposes"); } return 1; }
Код:
C:\Users\Armageddon\Desktop\Samp Server RC6\pawno\include\Aadmin.inc(35) : error 017: undefined symbol "name" C:\Users\Armageddon\Desktop\Samp Server RC6\pawno\include\Aadmin.inc(35) : error 079: inconsistent return types (array & non-array) C:\Users\Armageddon\Desktop\Samp Server RC6\pawno\include\Aadmin.inc(35) : error 029: invalid expression, assumed zero C:\Users\Armageddon\Desktop\Samp Server RC6\pawno\include\Aadmin.inc(35) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.