[SOLVED] 2 warnings, but command works fine. - 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: [SOLVED] 2 warnings, but command works fine. (
/showthread.php?tid=265435)
[SOLVED] 2 warnings, but command works fine. -
iPLEOMAX - 30.06.2011
Here is the code:
pawn Код:
CMD:arsync(playerid, params[])
{
if(XInfo[playerid][ALevel] >= 1)
{
new rplayer;
if(!sscanf(params,"u",rplayer))
{
new Float:X, Float:Y, Float:Z, vw, intr;
GetPlayerPos(rplayer, X, Y, Z);
vw = GetPlayerVirtualWorld(rplayer);
intr = GetPlayerInterior(rplayer);
SetTimerEx("arsyncplayer", 400, false,"ifffii",rplayer,X,Y,Z,vw,intr);
SpawnPlayer(rplayer);
} SendClientMessage(playerid, COLOR_RED, "Usage: /arsync [Player ID]");
} else SendClientMessage(playerid, COLOR_BRIGHTRED, wlvl1);
return true;
}
Код:
E:\Users\PLEOMAX\Desktop\****\filterscripts\****.pwn(3931) : warning 202: number of arguments does not match definition
E:\Users\PLEOMAX\Desktop\****\filterscripts\****.pwn(3931) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
When I compile this, i get 2 warnings.. But ingame, there are no bugs.
I want the warnings to "shoo away...!"
Re: 2 warnings, but command works fine. -
=WoR=Varth - 30.06.2011
Show your warning message.
Re: 2 warnings, but command works fine. -
iPLEOMAX - 30.06.2011
Quote:
Originally Posted by varthshenon
Show your warning message.
|
Oh FailMe... I just didn't notice the line. Problem Solved.
* I misread 3931 with 3913.. -_-