SA-MP Forums Archive
error 035: argument type mismatch (argument 1) - 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: error 035: argument type mismatch (argument 1) (/showthread.php?tid=564626)



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,stringer1); 



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_PLAYERSplayerid++)
     {
          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(stringer0xD97700AA); 



Re: error 035: argument type mismatch (argument 1) - Golf - 22.02.2015

Quote:
Originally Posted by zork
Посмотреть сообщение
Try:
PHP код:
SendAdminMessage(10xD97700AAstringer); 
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(10xD97700AAstringer); 
Problem Fixed , i tryed ur code i get error again , i did this :
pawn Код:
SendAdminMessage(stringer, COLOR_LIGHTRED);
Fine.

anyway Thanks.