[Help] Warning with megaslap. - 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] Warning with megaslap. (
/showthread.php?tid=228962)
[Help] Warning with megaslap. -
Duck - 20.02.2011
(629) : warning 217: loose indentation
On this:
Код:
case 16://megaslap
{
628 SetPlayerPos(ChosenPlayer[playerid],PX,PY,PZ+10);
629 format(string,128,"Admin %s Megaslapped %s",pName,ClickedPlayerName);
630 SendClientMessageToAll(0xFFFFFF,string);
* Duck slaps does work: around a bit with a large trout.
Код:
case 3://slap
{
SetPlayerPos(ChosenPlayer[playerid],PX,PY,PZ+10);
format(string,128,"Admin %s Slapped %s",pName,ClickedPlayerName);
SendClientMessageToAll(0xFFFFFF,string);
Re: [Help] Warning with megaslap. - rjjj - 20.02.2011
Just organize your code using
TAB in your keyboard.
Or, put in the top of your GameMode:
I hope that i have helped
Re: [Help] Warning with megaslap. -
Zack9764 - 20.02.2011
Loose indenation doesn't mean much. Also, /megaslap won't do anything different then /slap. You need to increase the +10 at the end of the third line.
Re: [Help] Warning with megaslap. -
Duck - 20.02.2011
My bad, thanks for the help; It worked

And I know about the +10.