1 Warning
#1

Hello Guys,
I just add this code

pawn Код:
new joinmess[128];
    format(joinmess, sizeof(joinmess), " %s has joined the server.", GetPlayerNameEx(playerid));
    ABroadCast(COLOR_YELLOW, joinmess);
then i got this warning

pawn Код:
C:\Users\Windows7\Desktop\Microsoft Corporation (c)\El Pilipinas Roleplay v5\gamemodes\XGAMING.pwn(46466) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Here's that line

pawn Код:
ABroadCast(COLOR_YELLOW, joinmess);
How to fix it ? i want my script to be clean. +rep
Reply
#2

I am not familiar with the function ABroadCast() but as far as I see in other threads you are missing the level-parameter. The error states that the number of arguments you stated (2) do not match the definition (3). In order to get going, you'll have to add the third parameter which is the level-parameter.
Reply
#3

pawn Код:
ABroadCast(COLOR_YELLOW,joinmess,1);
Should work i guess
Reply
#4

Quote:
Originally Posted by GeasyW
Посмотреть сообщение
pawn Код:
ABroadCast(COLOR_YELLOW,joinmess,1);
Should work i guess
+Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)