[Include] Ip Locator Adds Callback OnRetrieveIpLocation(playerid, country[], city[])
#21

Quote:
Originally Posted by iggy1
View Post
EDIT: Re-written should work fine now. I never did find the bug but i have made the code a lot smaller and more efficient. I don't see any reason why this wouldn't work on linux.
Oh no :/ it was city part i liked it more but fuu GREEDY SITES |
Reply
#22

Quote:
Originally Posted by iggy1
View Post
@Michael@Belgium Thanks for the report i never thought i'd need to test on linux TBH.

I will re-write it now.

Is it just the player who crashes or the server?

EDIT: Re-written should work fine now. I never did find the bug but i have made the code a lot smaller and more efficient. I don't see any reason why this wouldn't work on linux.
Yes the player crash. When joining server ... 2 sec later -> timeout.
Reply
#23

Nice Include i useing it, thanks
Reply
#24

Code:
C:\Users\\-\-\\Documents\-\-\pawno\include\iploc.inc(1) : error 010: invalid function or declaration
C:\Users\\-\-\\Documents\-\-\pawno\include\iploc.inc(7) : error 026: no matching "#if..."
C:\Users\\-\-\Documents\-\-\ip.pwn(11) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Help...
Reply
#25

Quote:
Originally Posted by Manuel7284
View Post
Code:
C:\Users\\-\-\\Documents\-\-\pawno\include\iploc.inc(1) : error 010: invalid function or declaration
C:\Users\\-\-\\Documents\-\-\pawno\include\iploc.inc(7) : error 026: no matching "#if..."
C:\Users\\-\-\Documents\-\-\ip.pwn(11) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Help...
Looks like you never copied the code correct, since the matching "#if" on line 7 - is on line 1.
Line 1:
pawn Code:
#if !defined _samp_included
That isn't invalid.

@Michael@Belgium Thanks very much for testing it again, it's the first time i have used HTTP func and I'm not sure how it works, I'm posting in scripting discussion now for advice.
Reply
#26

Very nice include mate, good job!

-FalconX
Reply
#27

I've got this error:
Code:
C:\Users\Paolo\Desktop\ServerMacros\pawno\include\iploc.inc(65) : error 017: undefined symbol "szCountryBuff"
C:\Users\Paolo\Desktop\ServerMacros\pawno\include\iploc.inc(69) : error 017: undefined symbol "szCountryBuff"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#28

I have updated the link, i must have changed something last minute without compiling. Sorry about that.
Reply
#29

I see only this link http://dl.dropbox.com/u/76608104/iploc1.1.inc
What's the new?
Reply
#30

Edit: Fixed.
Reply
#31

I included .inc file but I have errors
Code:
C:\Users\hp\Desktop\s4-host\filterscripts\gm.pwn(10) : error 031: unknown directive
C:\Users\hp\Desktop\s4-host\filterscripts\gm.pwn(5045) : warning 235: public function lacks forward declaration (symbol "OnRetrieveIpLocation")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
how to fix?
Reply
#32

Nice, kinda useful I will try it
Reply
#33

Why did you choose "http://www.hostip.info" for locating the ip ? if somebody is from your country and joined the server, it say's "Private Country" or am i wrong ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)