Ich habe diese probleme
stock GetAge(Birthday[16])
{
new D,M,Y,Age;
getdate(Y,M,D);
for(new i = strlen(Birthday); i > -1; i--)
{
if(Birthday[i] == '.')
{
new Tmp[32];
for(new o = i-1; o > -1; o--)
{
if(Birthday[o] == '.')
{
strmid(Tmp,Birthday,o+1,i);
if(strval(Tmp)>=M)
{
strmid(Tmp,Birthday,0,o);
if(strval(Tmp)>D)
{
strmid(Tmp,Birthday,i+1,strlen(Birthday));
Age = Y-strval(Tmp)-1;
break;
}
}
strmid(Tmp,Birthday,i+1,strlen(Birthday));
Age = Y-strval(Tmp);
break;
}
}
}
}
return Age;
}
if(dialogid == DIALOG_ALTER)
{
if(response == 0)
{
Kick(playerid);
}
if(strlen(inputtext) >= 1)
{
new str[18];
format(str,sizeof(str),"%s",inputtext);
GetAge(str);
}
}
C:\Users\Koray Bircan\Desktop\Selfmade by Koray\include\gamemodes\selfmadebykoray.pwn(1597) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.