Anti ip flood,compile errors when added to GM - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti ip flood,compile errors when added to GM (
/showthread.php?tid=577983)
Anti ip flood,compile errors when added to GM -
NexySamp - 15.06.2015
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
Re: Anti ip flood,compile errors when added to GM -
Overhaul - 15.06.2015
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(playerid, S_IP, sizeof(S_IP));
return S_IP;
}
Edit 3: Why is Join_Stamp there?
Re: Anti ip flood,compile errors when added to GM -
NexySamp - 15.06.2015
Dont know,i didnt make the "ip script".
Re: Anti ip flood,compile errors when added to GM -
NexySamp - 15.06.2015
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(playerid, S_IP, sizeof(S_IP));
return S_IP;
}
Edit 3: Why is Join_Stamp there?
|
The indetation was ok,but pastebin screwed it up...
Re: Anti ip flood,compile errors when added to GM -
Overhaul - 15.06.2015
All right. Have you resolved the problem?
Re: Anti ip flood,compile errors when added to GM -
NexySamp - 15.06.2015
Quote:
Originally Posted by Overhaul
All right. Have you resolved the problem?
|
Yup.