warnings - 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: warnings (
/showthread.php?tid=430285)
warnings -
PrezyI - 13.04.2013
Код:
(510) : warning 217: loose indentation
(513) : warning 217: loose indentation
(514) : warning 217: loose indentation
pawn Код:
Line 510: return 1;
Line 513: new message[128];
Line 514: format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
pawn Код:
public OnPlayerText(playerid, text[])
{
if(ismuted[playerid] == 1)
{
SendClientMessage(playerid,COLOR_RED,"You have been muted. You cannot chat, unless, unmuted.");
return 0;
}
if(text[0]=='@')
{
if(PlayerInfo[playerid][pLevel]>0)
{
new st[128];
format(st,128,"ADMIN %s: %s",GetName(playerid),text);
for(new i;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][pLevel]>0)
{
SendClientMessage(i, COLOR_YELLOW, st);
}
}
return 0;
}
return 1;
}
new message[128];
format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
ProxDetector(30.0, playerid, message, -1);
return 0;
}
Re: Error & warnings -
JaKe Elite - 13.04.2013
There is no errors.
Why you title it "Errors and Warnings"
If there is only warnings.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(ismuted[playerid] == 1)
{
SendClientMessage(playerid,COLOR_RED,"You have been muted. You cannot chat, unless, unmuted.");
return 0;
}
if(text[0]=='@')
{
if(PlayerInfo[playerid][pLevel]>0)
{
new st[128];
format(st,128,"ADMIN %s: %s",GetName(playerid),text);
for(new i;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][pLevel]>0)
{
SendClientMessage(i, COLOR_YELLOW, st);
}
}
}
return 0;
}
new message[128];
format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
ProxDetector(30.0, playerid, message, -1);
return 0;
}
Re: Error & warnings -
PrezyI - 13.04.2013
I know 'cause I fixed the error and thank you very much