Age Calculate
#1

Hey,

sry for my bad english...

I would calculate the age of the player, who enter his/her date of birth.

I would make it in a dialog, when a user registers.

I have this so far:

Код:
#define DIALOG_ALTER 56 //define dialog of age
Код:
if(dialogid == DIALOG_ALTER)
{
	if(response == 1)
		{
		new string[35];
		new alter = strval(inputtext);
   		SetPVarInt(playerid,"Alter",alter);
     	format(string, sizeof(string), "You are %i years old?",alter);
		SendClientMessage(playerid,COLOR_WHITE,string);
		}
		
		if(response == 0)
		{
		SendClientMessage(playerid,COLOR_RED,"You are leaving the Server!");
		Kick(playerid);
		}
		return 1;
	}
Reply


Messages In This Thread
Age Calculate - by Marco940 - 30.06.2012, 11:23
Re: Age Calculate - by Mauzen - 30.06.2012, 11:31
AW: Age Calculate - by Nero_3D - 30.06.2012, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)