error 035: argument type mismatch (argument 1) -
SHFaCeBook - 22.02.2015
FIXED.
Re: error 035: argument type mismatch (argument 1) -
zork - 22.02.2015
Код:
SendAdminMessage(0xD97700AA, stringer, 1);
Re: error 035: argument type mismatch (argument 1) -
xXSPRITEXx - 22.02.2015
Simple fix.
PHP код:
SendAdminMessage(0xD97700AA,stringer, 1);
Re: error 035: argument type mismatch (argument 1) -
SHFaCeBook - 22.02.2015
Quote:
Originally Posted by zork
Код:
SendAdminMessage(0xD97700AA, stringer, 1);
|
Still Not fixed
, and again i get this error.
Re: error 035: argument type mismatch (argument 1) -
Golf - 22.02.2015
First what is your stock function
PHP код:
stock SendAdminMessage(color,msg[80])
{
for(new playerid=0;playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(playerid) && IsPlayerAdmin(playerid)) // you must change this by your var(PlayerInfo[playerid][pAdmin])
{
SendClientMessage(playerid,color,msg);
}
}
return 1;
}
if yuu allredy need to know the id to send the message
PHP код:
stock SendAdminMessage(playerid,color,msg[80])
{
if(!IsPlayerAdmin(playerid)) return 0; // must change adm var
SendClientMessage(playerid,color,msg);
return 1;
}
Re: error 035: argument type mismatch (argument 1) -
zork - 22.02.2015
Show us your stock SendAdminMessage.
// Golf was first. He has the fix.
Re: error 035: argument type mismatch (argument 1) -
SHFaCeBook - 22.02.2015
This is my stock
pawn Код:
stock SendAdminMessage(string[], color) {
foreach(Player, x) {
if(PlayerInfo[x][pAdmin] >= 1) {
SendClientMessage(x, color, string);
}
}
return 1;
}
Re: error 035: argument type mismatch (argument 1) -
zork - 22.02.2015
Try:
PHP код:
SendAdminMessage(stringer, 0xD97700AA);
Re: error 035: argument type mismatch (argument 1) -
Golf - 22.02.2015
Quote:
Originally Posted by zork
Try:
PHP код:
SendAdminMessage(1, 0xD97700AA, stringer);
|
no.. problem the msg will be displayed only for one Admin
Re: error 035: argument type mismatch (argument 1) -
SHFaCeBook - 22.02.2015
Quote:
Originally Posted by zork
Try:
PHP код:
SendAdminMessage(1, 0xD97700AA, stringer);
|
Problem Fixed , i tryed ur code i get error again , i did this :
pawn Код:
SendAdminMessage(stringer, COLOR_LIGHTRED);
Fine.
anyway Thanks.