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 
anomesdia;
        
getdate(ano,mes,dia);
        
format(SkillBasesizeof(SkillBase), "%s"PlayerInfo[playerid][pHelperData]);
        
format(empresastringsizeof(empresastring), "%i/%i/%i"diamesano);
        if(
strlen(SkillBase) == strlen(empresastring)) { SCM(playerid, -1"CONFERE"); }
        else { 
SCM(playerid, -1"NГO CONFERE."); }
        
SCM(playerid, -1SkillBase);
        
SCM(playerid, -1empresastring);
        return 
0x01;
    } 
I wanna check if the pHelperData conferr with the dia,mes,ano.
But doesn't work..
Thank for your help.