SA-MP Forums Archive
What?! - 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: What?! (/showthread.php?tid=612736)



What?! - Micko123 - 21.07.2016

PHP код:
stock GetIP(playerid)
{
    static 
IP_Igraca[25];
    
GetPlayerIp(playeridIP_Igracasizeof IP_Igraca);
    return 
IP_Igraca;

On this line
PHP код:

I get this error
PHP код:
C:\Users\Admin\Desktop\Ostali Modovi\Las Venturas\gamemodes\lv-rpg.pwn(24588) : error 021symbol already defined"GetIP" 



Re: What?! - itsCody - 21.07.2016

ctrl f "GetIP" and see if any duplicates show up?


Re: What?! - Micko123 - 21.07.2016

Nope. Only that stock and here
PHP код:
format(string,sizeof(string), "GETIP | Staff: %s | Igrac: %s"GetName(playerid), GetName(pplayerid)); 
But that is message..


Re: What?! - Micko123 - 21.07.2016

Nvm guys. Fixed. I deleted that stock because i defined different here. thx


Re: What?! - Sew_Sumi - 21.07.2016

It's a function, not a "stock". Along with this, chances are you're still using it wrong.

https://sampforum.blast.hk/showthread.php?tid=570635