Just a warning I need to ask about! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Just a warning I need to ask about! (
/showthread.php?tid=223089)
Just a warning I need to ask about! -
Jack_Rocker - 08.02.2011
Basically I made a script and this warning comes up when I compile! Help please
Warning:
Код:
C:\Users\Jack\Desktop\samp\gamemodes\DM.pwn(231) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
And this is whats on line 231:
pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "You Currently Have A Kill Streak of %s!", GetPVarInt(playerid,"KillStreak"));
Re: Just a warning I need to ask about! -
MadeMan - 08.02.2011
pawn Код:
new string[128];
format(string, sizeof(string), "You Currently Have A Kill Streak of %d!", GetPVarInt(playerid,"KillStreak"));
SendClientMessage(playerid, COLOR_GREEN, string);
Re: Just a warning I need to ask about! -
iFriSki - 08.02.2011
When you're trying to add a more (how would I word this..) dynamic piece of string you're going to need to format it then send it.
https://sampwiki.blast.hk/wiki/SendClientMessage
https://sampwiki.blast.hk/wiki/Format