#1

i will gonna rep you if you fix this
Код:
if(INI_ReadString, "Swat", SaveINI, 30)
Код:
C:\Users\carlo\Desktop\CNRv0.3\gamemodes\RaNSEE.pwn(400) : error 076: syntax error in the expression, or invalid function call
Reply
#2

if(INI_ReadString, "Swat", SaveINI, 30);
Remove the semicolon (The ";"). So:
pawn Код:
if(INI_ReadString, "SWAT", SaveINI, 30)
Reply
#3

pawn Код:
C:\Users\carlo\Desktop\CNRv0.3\gamemodes\RaNSEE.pwn(402) : error 076: syntax error in the expression, or invalid function call
C:\Users\carlo\Desktop\CNRv0.3\gamemodes\RaNSEE.pwn(2727) : error 017: undefined symbol "sscanf"
C:\Users\carlo\Desktop\CNRv0.3\gamemodes\RaNSEE.pwn(2727) : error 017: undefined symbol "SendClienteMessage"
C:\Users\carlo\Desktop\CNRv0.3\gamemodes\RaNSEE.pwn(2730) : error 001: expected token: "*then", but found ")"
C:\Users\carlo\Desktop\CNRv0.3\gamemodes\RaNSEE.pwn(2730) : error 029: invalid expression, assumed zero
i create a command
Код:
CMD:setswat(playerid,params[])
{
	if(IsPlayerAdmin(playerid))
	{
		new Target, message[128];
		if(sscanf(params, "i",Target)) return SendClienteMessage(playerid, ERROR, "<!> /setswat <id> <!>");
		if (Target == INVALID_PLAYER_ID ) return SendClientMessage( playerid, ERROR, "<!> Player Is Offline <!>" );

		if INI_Open(SaveINI(playerid)))
		{
			INI_WriteInt("Swat", 1);
			INI_Save();
			INI_Close();

			format(message, sizeof (message), "|- You Are Now Allowed  To use SWAT -|");
			SendClientMessage(Target, 0xFFFF00,message);
		}
	}
	return 1;
}
pawn Код:
stock SaveINI(playerid)
{
  new account[64];
  format(account,30,"LuxAdmin/Account/%s",gPlayerName[playerid]);
  return account;
}
Reply
#4

Quote:

SendClienteMessage

Typo. I assume it should be "SendClientMessage"

Quote:

undefined symbol "sscanf"

It seems like you don't have sscanf already.

For the other ones, could you send these lines please?
Reply
#5

All Fix but This is Anoyying
i will gonna rep you if you fix this
Код:
if(INI_ReadString, "Swat", SaveINI, 30)
Код:
C:\Users\carlo\Desktop\CNRv0.3\gamemodes\RaNSEE.pwn(400) : error 076: syntax error in the expression, or invalid function call
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)