SA-MP Forums Archive
/ready - 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: /ready (/showthread.php?tid=336291)



/ready - dannyk0ed - 21.04.2012

pawn Код:
CMD:ready(playerid,params[])
{
        new text[128],message[256],sender[MAX_PLAYER_NAME];
        new string[128];
        {
         if(sscanf(params,"s",text)) SendClientMessage(playerid, COLOR_GRAD2, "/ready");
         else{
         GetPlayerName(playerid,sender,sizeof(sender));
         format(string, sizeof(string), "* %s takes his gun out and flicks safety off.", sendername);
         ProxDetector(10.0, playerid,message,COLOR_PURPLE);
 }
}
return 1;
}
pawn Код:
C:\Users\Donato\Desktop\Raven's Roleplay 0.3D\gamemodes\larp.pwn(39559) : warning 217: loose indentation
C:\Users\Donato\Desktop\Raven'
s Roleplay 0.3D\gamemodes\larp.pwn(39559) : error 029: invalid expression, assumed zero
C:\Users\Donato\Desktop\Raven's Roleplay 0.3D\gamemodes\larp.pwn(39559) : error 017: undefined symbol "cmd_ready"
C:\Users\Donato\Desktop\Raven'
s Roleplay 0.3D\gamemodes\larp.pwn(39559) : error 029: invalid expression, assumed zero
C:\Users\Donato\Desktop\Raven's Roleplay 0.3D\gamemodes\larp.pwn(39559) : fatal error 107: too many error messages on one line



Re: /ready - BleverCastard - 21.04.2012

Here is an idea, add
Код:
#pragma tabsize 0
at the top of your script, and it will get rid of the Loose indentations


Re: /ready - dannyk0ed - 21.04.2012

That changed nothing.


Re: /ready - JJB562 - 21.04.2012

What's that command even supposed to do?


Re: /ready - dannyk0ed - 21.04.2012

just to say that he takes out a gun and turns safety off, without doing /me takes out gun /me turns safety off


Re: /ready - JTaylor - 21.04.2012

Just do /me


Re: /ready - MP2 - 22.04.2012

If you want to make a shortcut for /me, just do this:

pawn Код:
CMD:ready(playerid, params[]) return cmd_me(playerid, "takes out his penis and flicks the safety off.");