Help in clan system
#1

I have a Clan system
When I put the Clan tag on my name I can re-connect the server with the same name
What's your solution?!
Reply
#2

Update the name in database, not just server.
Reply
#3

In the Clan system's , the tag can be moved and deleted
This is not possible if the name of the database is upgraded
Reply
#4

Код HTML:
	foreach(Player, i)
	{
		if(IsPlayerConnected(i) && i != playerid)
		{
			if(strcmp(PlayerInfo[playerid][pNormalName], PlayerInfo[i][pNormalName], true) == 0) KickEx(playerid);
	    }
	}
I added this code but it does not work
Reply
#5

Quote:
Originally Posted by Aliteos
Посмотреть сообщение
Код HTML:
	foreach(Player, i)
	{
		if(IsPlayerConnected(i) && i != playerid)
		{
			if(strcmp(PlayerInfo[playerid][pNormalName], PlayerInfo[i][pNormalName], true) == 0) KickEx(playerid);
	    }
	}
I added this code but it does not work
I assume you want to kick someone having the same name?

PHP код:
if(!strcmp(PlayerInfo[playerid][pNormalName],PlayerInfo[i][pNormalName],true)) 
Reply
#6

Yes, I do not want to add a name twice
Reply
#7

strcmp won't help you,use strfind.
https://sampwiki.blast.hk/wiki/Strfind
Reply
#8

I used strfind, but did not work
Reply
#9

then search for tutorial on samp
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)