[HELP] Tazer
#1

I'm missing something here, could anyone see what I'm missing?

Код:
command(tazer, playerid, params[])
{
	new string[128];
	if(IsPlayerConnected(playerid))
 	{
		if(Groups[Player[playerid][Group]][CommandTypes] == 1)
		{
   			GivePlayerWeaponEx(playerid, 23);
		 	format(string, sizeof(string), "* %s unholsters the tazer from their duty-belt.", RemoveUnderScore(playerid));
			NearByMessage(playerid, PURPLE, string);
			Player[playerid][Tazer] = 1;
			return 1;
		}
		else if(Player[playerid][Tazer] == 1)
		{
			SetPlayerArmedWeapon(playerid, 0)
 			format(string, sizeof(string), "* %s places the tazer back on their duty-belt.", RemoveUnderScore(playerid)); <-- Line 18741
			NearByMessage(playerid, PURPLE, string);
		}
 	}
	return 1;
}

Код:
C:\Users\mma\Desktop\SAMP\gamemodes\lspr.pwn(18741) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Maybe it's because I'm tired but I don't see any error in here.
Reply
#2

The error tells you whats wrong..
anyways its probably the missing ;

SetPlayerArmedWeapon(playerid, 0)
Reply
#3

Yeah, lmao I was searching for this like an hour but anyways thank you I already found out!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)