SA-MP Forums Archive
Help me Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me Command (/showthread.php?tid=409141)



Help me Command - RoW001 - 20.01.2013

Help me with createclan command.
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;
}
And OnDialogResponse
Код:
            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);
			}
		}



Re: Help me Command - RoW001 - 21.01.2013

Help me please
off:Not is double post !