KillTimer Problem
#1

Hello, how are you, I have KillTimer in my admin system upon compile its giving errors here it is..

pawn Код:
/* line 783*/ KillTimer(register_timer1[playerid]);
Errors"
Код:
D:\1v1_Nouman_server\filterscripts\project.pwn(783) : error 017: undefined symbol "register_timer1"
D:\1v1_Nouman_server\filterscripts\project.pwn(783) : warning 215: expression has no effect
D:\1v1_Nouman_server\filterscripts\project.pwn(783) : error 001: expected token: ";", but found "]"
D:\1v1_Nouman_server\filterscripts\project.pwn(783) : error 029: invalid expression, assumed zero
D:\1v1_Nouman_server\filterscripts\project.pwn(783) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Quote:

undefined symbol "register_timer1"

Pretty much sums it up. You don't have register_timer1 array defined anywhere.
Reply
#3

I have this:
pawn Код:
new register_timer1[MAX_PLAYERS];
        register_timer1[playerid] = SetTimerEx("register_timer", 3*60*1000, 0, "d", playerid);
Reply
#4

So you have it in local scope. https://sampwiki.blast.hk/wiki/Scripting_Basics#Scope - move it to global one
Reply
#5

ahh.. my fault thanks lol
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)