Only One Error Help Me Please. - 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: Only One Error Help Me Please. (
/showthread.php?tid=528136)
Only One Error Help Me Please. -
georgian1 - 26.07.2014
hi guys,i`m installing amry ban system >>
https://sampforum.blast.hk/showthread.php?tid=333203
so when i want to complie i get this error :
Код:
54553) : error 021: symbol already defined: "GetName"
line 54553:
Код:
stock GetName(playerid)
{
new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));
return name;
}
and this is in include already defined :
Код:
GetPlayerIp ( playerid , ip , IP_MAX ),getdate ( nY , nM , nD ), gettime ( nH , nMin , nS );
format ( str , STRING_MAX, "INSERT INTO `"#BAN_LIST"`(`username`, `ip`) VALUES ('%s','%s')", GetName(playerid), ip);
any solutions ? what can we do. thanks for help and sorry for my english
Re: Only One Error Help Me Please. -
SanAndreasMP - 26.07.2014
It's because you're having function "GetName" Two times in the script. Try peeping into the script and see whether there are two GetName function or not. If there is, Try removing one of it.
Re: Only One Error Help Me Please. -
georgian1 - 26.07.2014
Quote:
Originally Posted by SanAndreasMP
It's because you're having function "GetName" Two times in the script. Try peeping into the script and see whether there are two GetName function or not. If there is, Try removing one of it.
|
yes i already see it but 2 of them is needed i already pasted lines where they are,sorry for my english
Re: Only One Error Help Me Please. -
GShock - 26.07.2014
Remove one and see if it still exist.
Re: Only One Error Help Me Please. -
georgian1 - 27.07.2014
Quote:
Originally Posted by GShock
Remove one and see if it still exist.
|
it doesn`t show any error but i removed one = no more tempban include if i remove it in gamemode =
}
stock GetName(playerid)
{
new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));
return name;
}
^^ idk what its doing but....