30.06.2011, 23:15
Here is the code:
When I compile this, i get 2 warnings.. But ingame, there are no bugs.
I want the warnings to "shoo away...!"
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.
I want the warnings to "shoo away...!"