error 035: argument type mismatch (argument 1)
#1

FIXED.
Reply
#2

Код:
SendAdminMessage(0xD97700AA, stringer, 1);
Reply
#3

Simple fix.
PHP код:
SendAdminMessage(0xD97700AA,stringer1); 
Reply
#4

Quote:
Originally Posted by zork
Посмотреть сообщение
Код:
SendAdminMessage(0xD97700AA, stringer, 1);
Still Not fixed , and again i get this error.
Reply
#5

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;

Reply
#6

Show us your stock SendAdminMessage.

// Golf was first. He has the fix.
Reply
#7

This is my stock

pawn Код:
stock SendAdminMessage(string[], color) {
    foreach(Player, x) {
        if(PlayerInfo[x][pAdmin] >= 1) {
            SendClientMessage(x, color, string);
        }
    }
    return 1;
}
Reply
#8

Try:
PHP код:
SendAdminMessage(stringer0xD97700AA); 
Reply
#9

Quote:
Originally Posted by zork
Посмотреть сообщение
Try:
PHP код:
SendAdminMessage(10xD97700AAstringer); 
no.. problem the msg will be displayed only for one Admin
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)