Only One Error Help Me Please.
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

Remove one and see if it still exist.
Reply
#5

Quote:
Originally Posted by GShock
Посмотреть сообщение
Remove one and see if it still exist.
it doesn`t show any error but i removed on‌e = 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....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)