SA-MP Forums Archive
<<>> Compare STRING - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: <<>> Compare STRING (/showthread.php?tid=263904)



<<>> Compare STRING - Ricop522 - 24.06.2011

I make this command.
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;
    } 
I wanna check if the pHelperData conferr with the dia,mes,ano.
But doesn't work..
Thank for your help.