15.07.2018, 04:12
I want to check if player is created a room:
On create
enum
Код:
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 :(
Код:
GetPlayerName(playerid, RoomInfo[i][Owner], MAX_PLAYER_NAME);
Код:
enum rInfo { bool:IsCreated, Owner[MAX_PLAYER_NAME], RoomID, World, Name[22], Weapon1, Weapon2, Map, Players }