Just a warning I need to ask about!
#1

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"));
Reply
#2

pawn Код:
new string[128];
format(string, sizeof(string), "You Currently Have A  Kill Streak of %d!", GetPVarInt(playerid,"KillStreak"));
SendClientMessage(playerid, COLOR_GREEN, string);
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)