admin include problem
#1

i want to test if my admin.inc is functioning...

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;
}
i create a new command to test if it work..
Код:
CMD:test(playerid, params[])
{
	if(PlayerInfo(playerid, 1)
	{
	    SendClientMessage(playerid, 0x0, "tax purposes");
	}
	return 1;
}
but i got this error
Код:
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.
Reply


Messages In This Thread
admin include problem - by Armageddonz - 09.06.2015, 07:59
Re: admin include problem - by SoFahim - 09.06.2015, 08:10
Re: admin include problem - by Armageddonz - 09.06.2015, 08:37
Re: admin include problem - by JaydenJason - 09.06.2015, 08:55
Re: admin include problem - by SoFahim - 09.06.2015, 08:55
Re: admin include problem - by Armageddonz - 09.06.2015, 09:07
Re: admin include problem - by Armageddonz - 09.06.2015, 09:12
Re: admin include problem - by mamorunl - 09.06.2015, 09:18
Re: admin include problem - by Armageddonz - 09.06.2015, 09:47
Re: admin include problem - by mamorunl - 09.06.2015, 09:54

Forum Jump:


Users browsing this thread: 2 Guest(s)