/slap errors , sscanf +Rep
#1

after adding the sscanf line the 4 errors started showing up


Script

Код:
ocmd:slap(playerid,params[])
{
	new pID;
	if(!IsPlayerAnAdmin(playerid,2))return SendClientMessage(playerid,COLOR_BLUE,"You're not allowed to use this command");
 	new string[128], string2[128];
	if(sscanf(params,"u",playerid))return SendClientMessage(playerid,COLOR_BLUE,"/SLAP [ID]");
  	format(string,sizeof(string),"You've slapped %s(%d)", pName(pID), pID);
   	format(string2,sizeof(string2),"You've been slapped by Adminstrator");
   	for(new i=0;i<GetMaxPlayers();i++)
	{
		if(IsPlayerConnected(i))
		{
			if(IsPlayerAnAdmin(i,1))
			{
			    format(string2,sizeof(string2),"A: %s [LEVEL %i] used the SLAP command.",pName(playerid),GetPVarInt(playerid,"Admin"));
				SendClientMessage(i,COLOR_ORANGE,string2);
			}
		}
	}
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid,x,y,z);
	SetPlayerPos(playerid,x,y,z+10);
	return 1;
}
errors

Код:
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(589) : error 029: invalid expression, assumed zero
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(589) : error 017: undefined symbol "ocmd_slap"
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(589) : error 029: invalid expression, assumed zero
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(589) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Thx
Reply


Messages In This Thread
/slap errors , sscanf +Rep - by ItzRbj - 23.06.2015, 01:08
Re: /slap errors , sscanf +Rep - by NeilC - 23.06.2015, 01:45
Re : /slap errors , sscanf +Rep - by KillerDVX - 23.06.2015, 01:57
Re: /slap errors , sscanf +Rep - by ItzRbj - 23.06.2015, 02:09
Re : /slap errors , sscanf +Rep - by KillerDVX - 23.06.2015, 02:12
Re: /slap errors , sscanf +Rep - by NeilC - 23.06.2015, 02:12
Re: /slap errors , sscanf +Rep - by ItzRbj - 23.06.2015, 02:23
Re : /slap errors , sscanf +Rep - by KillerDVX - 23.06.2015, 02:26
Re: Re : /slap errors , sscanf +Rep - by ItzRbj - 23.06.2015, 02:27
Re: /slap errors , sscanf +Rep - by Alpay0098 - 23.06.2015, 02:31

Forum Jump:


Users browsing this thread: 4 Guest(s)