Help with togging fam chat off - 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: Help with togging fam chat off (
/showthread.php?tid=431407)
Help with togging fam chat off -
MichaelWharton101 - 18.04.2013
This is wired but I get a error and need help
code:
Код:
else if(!strcmp(params, "famooc", true))
{
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!famOOCStatus)
{
famOOCStatus = 1;
format(string, sizeof(string), "AdmCmd: %s has {33AA33}enabled {FF6347}the global Family-OOC chat for everybody.", RPN(playerid));
SendPlayerFamMessage(COLOR_LIGHTRED, string);
}
else
{
famOOCStatus = 0;
format(string, sizeof(string), "AdmCmd: %s has {FF9900}disabled {FF6347}the global Family-OOC chat for everybody.", RPN(playerid));
SendPlayerFamMessage(COLOR_LIGHTRED, string);
}
}
error:
Код:
C:\Users\Michael\Desktop\A-RP\gamemodes\A-RP.pwn(12088) : error 035: argument type mismatch (argument 3)
C:\Users\Michael\Desktop\A-RP\gamemodes\A-RP.pwn(21562) : error 035: argument type mismatch (argument 2)
C:\Users\Michael\Desktop\A-RP\gamemodes\A-RP.pwn(21568) : error 035: argument type mismatch (argument 2)
C:\Users\Michael\Desktop\A-RP\gamemodes\A-RP.pwn(21578) : error 035: argument type mismatch (argument 2)
C:\Users\Michael\Desktop\A-RP\gamemodes\A-RP.pwn(21584) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Respuesta: Help with togging fam chat off -
Strier - 18.04.2013
Re: Help with togging fam chat off -
MichaelWharton101 - 18.04.2013
Did not fix it sir
Re: Help with togging fam chat off -
Scrillex - 18.04.2013
Could you please point out the lines ?
pawn Код:
else if(!strcmp(params, "famooc", true))
{
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(famOOCStatus == 0)
{
famOOCStatus = 1;
format(string, sizeof(string), "AdmCmd: %s has {33AA33}enabled {FF6347}the global Family-OOC chat for everybody.", RPN(playerid));
SendPlayerFamMessage(COLOR_LIGHTRED, string);
}
else if(famOOCStatus == 1)
{
famOOCStatus = 0;
format(string, sizeof(string), "AdmCmd: %s has {FF9900}disabled {FF6347}the global Family-OOC chat for everybody.", RPN(playerid));
SendPlayerFamMessage(COLOR_LIGHTRED, string);
}
}
try something like that!