24.06.2011, 00:09
I make this command.
I wanna check if the pHelperData conferr with the dia,mes,ano.
But doesn't work..
Thank for your help.
PHP Code:
if(strcmp(cmd, "/checkhelper", true) == 0)
{
new ano, mes, dia;
getdate(ano,mes,dia);
format(SkillBase, sizeof(SkillBase), "%s", PlayerInfo[playerid][pHelperData]);
format(empresastring, sizeof(empresastring), "%i/%i/%i", dia, mes, ano);
if(strlen(SkillBase) == strlen(empresastring)) { SCM(playerid, -1, "CONFERE"); }
else { SCM(playerid, -1, "NГO CONFERE."); }
SCM(playerid, -1, SkillBase);
SCM(playerid, -1, empresastring);
return 0x01;
}
But doesn't work..
Thank for your help.