[Help]Help for aduty plz :p - 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]Help for aduty plz :p (
/showthread.php?tid=97039)
[Help]Help for aduty plz :p -
Tink0 - 12.09.2009
Код:
V:/server/momo2.pwn(19470) : warning 217: loose indentation
V:/server/momo2.pwn(19477) : warning 217: loose indentation
V:/server/momo2.pwn(19478) : warning 217: loose indentation
V:/server/momo2.pwn(19486) : warning 217: loose indentation
V:/server/momo2.pwn(19488) : warning 217: loose indentation
V:/server/momo2.pwn(19495) : warning 217: loose indentation
V:/server/momo2.pwn(19496) : warning 217: loose indentation
V:/server/momo2.pwn(19504) : warning 217: loose indentation
V:/server/momo2.pwn(19507) : warning 217: loose indentation
Eror for :
Код:
if (strcmp(cmd,"/aduty",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s ********.", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid,COLOR_YELLOW);
}
else
{
SendClientMessage(playerid, COLOR_RED, "***********!");
}
}
return 1;
}
if (strcmp(cmd,"/adutyoff",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s is duty off", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid,COLOR_WHITE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You are not admin.");
}
}
return 1;
}
Help me please.
Re: [Help]Help for aduty plz :p -
dice7 - 12.09.2009
http://forum.sa-mp.com/index.php?topic=61893.0
or just put #pragma tabsize 0 at the top on your script
Re: [Help]Help for aduty plz :p -
jonrb - 12.09.2009
"loose indentation" means that your code is not aligned. For example:
Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s ********.", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid,COLOR_YELLOW);
Should be:
Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s ********.", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid,COLOR_YELLOW);
PAWNO likes it neat.
Re: [Help]Help for aduty plz :p -
x-unit - 12.09.2009
Please use the code type , write your code
Re: [Help]Help for aduty plz :p -
Tink0 - 12.09.2009
Thank alot