Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Tonys on January 12, 2010, 01:14:40 AM

Title: Small compiling problem with pawno
Post by: Tonys on January 12, 2010, 01:14:40 AM
I'm getting this error when compiling my anti-minigun FS.

C:\Users\eee\Desktop\VCMP [PAWN]\filterscripts\antiminigun.pwn(18) : warning 202: number of arguments does not match definition
C:\Users\eee\Desktop\VCMP [PAWN]\filterscripts\antiminigun.pwn(18) : warning 202: number of arguments does not match definition


Here is the line that it's refering too -

weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1,"i",i);

Rest of the OnFilterScriptInit -
public OnFilterScriptInit()
{
print("| ****** Anti-Minigun ******|");
print("| *** Created By:  Tonys ***|");
print("|***************************|");
       for(new i; i<MAX_PLAYERS; i++)
{
weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1,"i",i);
return 1;
}
return 1;
}


Any help greatly appreciated.
First time using pawn..
Title: Re: Small compiling problem with pawno
Post by: PlayerX on January 12, 2010, 02:09:54 AM
weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1,"i",i);

No SetTimer, is SetTimerEx and not implemented yet.

is
weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1);

:/