20.01.2013, 15:02
Help me with createclan command.
Problem is that not create clan
Mention using y_ini
And OnDialogResponse
Problem is that not create clan
Mention using y_ini
Код:
CMD:createclan(playerid,params[]) { ShowPlayerDialog(playerid, CrCl , DIALOG_STYLE_INPUT ,"CreateClan" , "Creazati un clan scriind numele mai jos" , "Ok" , "Cancel" ); return 1; }
Код:
case CrCl: { if(response) { if( Cinfo[ playerid ][ crank ] != 0 ) return SendClientMessage(playerid , -1 ,"Aloo doar un clan per player xD!"); new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteString(File, "ClanName", inputtext); INI_Close(File); } }