31.07.2012, 19:45
hey, by accident i found a bank- time system that i need but i cant make it work as it gives me errors
here is the code
and here is the errors that it gives me srry iam new scripter
errors
C:\Users\Joe\Desktop\{}.pwn(3) : error 010: invalid function or declaration
C:\Users\Joe\Desktop\{}.pwn(6) : warning 235: public function lacks forward declaration (symbol "isPlayerInArea")
C:\Users\Joe\Desktop\{}.pwn(10) : error 017: undefined symbol "IsPlayerInArea"
C:\Users\Joe\Desktop\{}.pwn(13) : error 017: undefined symbol "timer1"
C:\Users\Joe\Desktop\{}.pwn(20) : warning 235: public function lacks forward declaration (symbol "BankTime")
C:\Users\Joe\Desktop\{}.pwn(24) : error 017: undefined symbol "IsPlayerInArea"
C:\Users\Joe\Desktop\{}.pwn(29) : warning 217: loose indentation
C:\Users\Joe\Desktop\{}.pwn(35) : error 017: undefined symbol "timer2"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
i hope guys u could help me cause really i need helping !
here is the code
Код:
timer1 = SetTimer("isPlayerInArea",100, 1); timer2 = SetTimer("BankTime", 999, 1); public isPlayerInArea() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInArea(i, 1711.4371, 1731.7839, -1670.3661, -1643.2722)) { SendClientMessage(i, 0xFFFF00AA, "( ! ) Welcome to Bank!"); KillTimer(timer1); return 1; } } return 1; } public BankTime() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInArea(i, 1711.4371, 1731.7839, -1670.3661, -1643.2722)) { new hours; new minutes; GetPlayerTime(i, hours, minutes); if(hours == 6.00 && minutes == 0.00) { PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0); GivePlayerMoney(i, 7500); SendClientMessage(i, 0x12900BBF, "||| 6:00 | BANK TIME: |||"); SendClientMessage(i, 0xFFFF00AA, "YOU RECEIVE +7.500 $"); KillTimer(timer2); return 1; } } } return 1; }
errors
C:\Users\Joe\Desktop\{}.pwn(3) : error 010: invalid function or declaration
C:\Users\Joe\Desktop\{}.pwn(6) : warning 235: public function lacks forward declaration (symbol "isPlayerInArea")
C:\Users\Joe\Desktop\{}.pwn(10) : error 017: undefined symbol "IsPlayerInArea"
C:\Users\Joe\Desktop\{}.pwn(13) : error 017: undefined symbol "timer1"
C:\Users\Joe\Desktop\{}.pwn(20) : warning 235: public function lacks forward declaration (symbol "BankTime")
C:\Users\Joe\Desktop\{}.pwn(24) : error 017: undefined symbol "IsPlayerInArea"
C:\Users\Joe\Desktop\{}.pwn(29) : warning 217: loose indentation
C:\Users\Joe\Desktop\{}.pwn(35) : error 017: undefined symbol "timer2"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
i hope guys u could help me cause really i need helping !