[HELP] Tazer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Tazer (
/showthread.php?tid=258885)
[HELP] Tazer -
joeri55 - 02.06.2011
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.
Re: [HELP] Tazer -
PrawkC - 02.06.2011
The error tells you whats wrong..
anyways its probably the missing ;
SetPlayerArmedWeapon(playerid, 0)
Re: [HELP] Tazer -
joeri55 - 02.06.2011
Yeah, lmao I was searching for this like an hour but anyways thank you I already found out!