weird prob - 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)
+--- Thread: weird prob (
/showthread.php?tid=526150)
weird prob -
saffierr - 15.07.2014
I've got a weird problem,
Quote:
CMD:flame(playerid, params[])
{
if (!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "SERVER: Unknown command.");
}
else if (IsPlayerAdmin(playerid))
{
GivePlayerWeapon(playerid, 37, 350);
SendClientMessage(playerid, COLOR_GREY, "You got a Flamethrower.");
}
return 1;
}
|
It says that my flamethrower has 350bullets.
but this says
Re: weird prob -
saffierr - 15.07.2014
Anyways skip this, I just added a 0 more, its just weird but not a big problem.
Re: weird prob -
SupaVZ - 15.07.2014
Are u using sscanf?
Re: weird prob -
SupaVZ - 15.07.2014
Код:
CMD:flamethrower(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFF,"Error: This command is only for RCON Admins");
GivePlayerWeapon(playerid, 37, 350);
SendClientMessage(playerid, COLOR_GREY,"You got a flamethrower.");
return 1;
}
Make sure you log in rcon to give yourself a flamethrower
Re: weird prob -
Jacob756 - 15.07.2014
SupaVZ is right..it must be sscanf or zcmd
Re: weird prob -
saffierr - 15.07.2014
it's the same scrip isn't it?
I have sscanf and zcmd, as my includes
Re: weird prob -
SupaVZ - 15.07.2014
Yes, its the same but you if you want to script a command, sscanf have to be in it.
Re: weird prob -
saffierr - 15.07.2014
I have init, but I already have much more commands, so that's not the prob anyways skip this THREAD, this is not a big problem