strcmp problem
#1

I want to check if player is created a room:
Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
			   
if(strcmp(RoomInfo[i][Owner],playername)!=0)
{
Dialog(playerid,999,DIALOG_STYLE_MSGBOX,"{ff0000}警告","{ff0000}你已经创建了一个房间","Okay","");
break;
}
//not work :(
On create
Код:
GetPlayerName(playerid, RoomInfo[i][Owner], MAX_PLAYER_NAME);
enum
Код:
enum rInfo
{
	bool:IsCreated,
	Owner[MAX_PLAYER_NAME],
	RoomID,
	World,
	Name[22],
	Weapon1,
	Weapon2,
	Map,
	Players

}
Reply


Messages In This Thread
strcmp problem - by 3417512908 - 15.07.2018, 04:12
Re: strcmp problem - by 3417512908 - 15.07.2018, 04:14
Re: strcmp problem - by coool - 15.07.2018, 06:18
Re: strcmp problem - by SytonicX - 15.07.2018, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)