Warnings arguments
#1

Hello, i made new command but im getting this warnings:

PHP код:
C:\Users\Koen\Desktop\SGRP\gamemodes\SGRP.pwn(54621) : warning 202number of arguments does not match definition 
PHP код:
case 1:
                {
                    
playerData[giveplayerid][pLevel] = amount;
                    
format(stringsizeof string"AdmWarn: {FFFFFF}%s Has set %s level to  %d."getPlayerName(playerid), getPlayerName(playerid), amount);
>>                    
SendHeadStaffMessage(COLOR_LIGHTREDstring5);
                    
format(stringsizeof(string), "   %s's Level has been set to %d."getPlayerName(giveplayerid), amount);
                    
SetPlayerScore(giveplayeridplayerData[giveplayerid][pLevel]);
                } 
Reply
#2

anyone ?
Reply
#3

Show us the SendHeadStaffMessage code.

EDIT also looks like you missed the brackets on sizeof(string)
Reply
#4

PHP код:
forward SendHeadStaffMessage(colorstring[]);
public 
SendHeadStaffMessage(colorstring[])
{
    foreach(
Playeri)
    {
            if(
playerData[i][pAdmin] >= 6)
            {
                
SendClientMessage(icolorstring);
            }
    }

Reply
#5

PHP код:
 SendHeadStaffMessage(COLOR_LIGHTREDstring5); 
Show us SendHeadStaffMassage codes
Reply
#6

look up
Reply
#7

SendHeadStaffMessage has only 2 parameters but you wrote it with 3 you added that 5
Reply
#8

Quote:
Originally Posted by StuartD
Посмотреть сообщение
Show us the SendHeadStaffMessage code.

EDIT also looks like you missed the brackets on sizeof(string)
You can do it like that too.

Replace it with:
pawn Код:
SendHeadStaffMessage(COLOR_LIGHTRED, string);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)