Dialog problem
#1

i want to make this
Код:
{
	        	             new year, month,day;
			getdate(year, month, day);
	        	              new DateInfo[3][20];
			split(text, DateInfo, '/');
			if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
			{
			    SendClientMessage(playerid, COLOR_1BLUE, "Care este data ta de nastere? [ zi/luna/an ]");
			    return 0;
			}
			new check = year - strvalEx(DateInfo[2]);
			if(check == year)
			{
			    SendClientMessage(playerid, COLOR_1BLUE, "Care este data ta de nastere? [ zi/luna/an ]");
			    return 0;
			}
			if(strvalEx(DateInfo[1]) > month)
			{
			    check -= 1;
			}
			else if(strvalEx(DateInfo[1]) == month && strvalEx(DateInfo[0]) > day)
			{
			    check -= 1;
			}
			PlayerInfo[playerid][pAge] = check;
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "Deci %s, ai %d ani.", sendername, PlayerInfo[playerid][pAge]);
			SendClientMessage(playerid, COLOR_WHITE, string);
			RegistrationStep[playerid] = 3;//asta cautam
      			SendClientMessage(playerid, COLOR_1BLUE, "Unde vrei sa fi spawnat? LS(Los Santos) sau SF (San Fiero)");
      			//SendClientMessage(playerid, COLOR_GREEN, "[Info]: Ok, acum iti vom prezenta un tutorial, iar daca vrei sa sari peste el scrie '/skip'.");
			return 0;
	    }
in a dialog but i recived 1 error at split(text, DateInfo, '/');
please help me
Reply


Messages In This Thread
Dialog problem - by Visio - 21.04.2012, 12:51
Re: Dialog problem - by Visio - 21.04.2012, 13:11
Re: Dialog problem - by Ainseri - 21.04.2012, 13:32
Re: Dialog problem - by Visio - 21.04.2012, 13:50
Re: Dialog problem - by Ainseri - 21.04.2012, 13:56
Re: Dialog problem - by Visio - 21.04.2012, 14:20
Re: Dialog problem - by Ainseri - 21.04.2012, 14:49
Re: Dialog problem - by Visio - 21.04.2012, 14:51
Re: Dialog problem - by Ainseri - 21.04.2012, 14:55
Re: Dialog problem - by Visio - 21.04.2012, 14:57

Forum Jump:


Users browsing this thread: 3 Guest(s)