1 Warning - 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: 1 Warning (
/showthread.php?tid=509955)
1 Warning -
ChuckyBabe - 28.04.2014
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
Re: 1 Warning -
Campbell- - 28.04.2014
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.
Re: 1 Warning -
GeasyW - 28.04.2014
pawn Код:
ABroadCast(COLOR_YELLOW,joinmess,1);
Should work i guess
Re: 1 Warning -
ChuckyBabe - 29.04.2014
Quote:
Originally Posted by GeasyW
pawn Код:
ABroadCast(COLOR_YELLOW,joinmess,1);
Should work i guess
|
+Rep