Anti ip flood,compile errors when added to GM
#1

Hello,how to fix these errors

Код:
C:\Users\Korisnik\Desktop\Yugoslavia Trucking v.0.3.7\gamemodes\YT.pwn(287) : error 017: undefined symbol "GetStampIP"
C:\Users\Korisnik\Desktop\Yugoslavia Trucking v.0.3.7\gamemodes\YT.pwn(291) : warning 225: unreachable code
C:\Users\Korisnik\Desktop\Yugoslavia Trucking v.0.3.7\gamemodes\YT.pwn(291) : error 029: invalid expression, assumed zero
C:\Users\Korisnik\Desktop\Yugoslavia Trucking v.0.3.7\gamemodes\YT.pwn(291) : error 017: undefined symbol "GetStampIP"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Code: http://pastebin.com/mJiuCQet
Reply
#2

Edit: didn't see the link. Hold on.

Edit 2: For one, the indentation is awful. Two, you are not returning the formatted IP in your GetStampIP function.

PHP код:
stock GetStampIP(playerid) {
    new 
S_IP[16];
    
Join_Stamp GetTickCount();
    
GetPlayerIp(playeridS_IPsizeof(S_IP));
    return 
S_IP;

Edit 3: Why is Join_Stamp there?
Reply
#3

Dont know,i didnt make the "ip script".
Reply
#4

Quote:
Originally Posted by Overhaul
Посмотреть сообщение
Edit: didn't see the link. Hold on.

Edit 2: For one, the indentation is awful. Two, you are not returning the formatted IP in your GetStampIP function.

PHP код:
stock GetStampIP(playerid) {
    new 
S_IP[16];
    
Join_Stamp GetTickCount();
    
GetPlayerIp(playeridS_IPsizeof(S_IP));
    return 
S_IP;

Edit 3: Why is Join_Stamp there?
The indetation was ok,but pastebin screwed it up...
Reply
#5

All right. Have you resolved the problem?
Reply
#6

Quote:
Originally Posted by Overhaul
Посмотреть сообщение
All right. Have you resolved the problem?
Yup.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)