Vice City Multiplayer

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

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

Code: [Select]
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 -

Code: [Select]
weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1,"i",i);
Rest of the OnFilterScriptInit -
Code: [Select]
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, 04:09:54 am
Code: [Select]
weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1,"i",i);
No SetTimer, is SetTimerEx and not implemented yet.

is
Code: [Select]
weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1);
:/