Author Topic: Small compiling problem with pawno  (Read 3023 times)

0 Members and 1 Guest are viewing this topic.

Offline Tonys

  • Street Thug
  • *
  • Posts: 19
    • View Profile
Small compiling problem with pawno
« 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..
« Last Edit: January 12, 2010, 03:18:18 am by Tonys »

Offline PlayerX

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: Small compiling problem with pawno
« Reply #1 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);
:/