SA-MP Forums Archive
Prevent from saying the same thing 2 times? - 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: Prevent from saying the same thing 2 times? (/showthread.php?tid=156482)



Prevent from saying the same thing 2 times? - Antonio [G-RP] - 22.06.2010

How do you do this aswell. Like if I typed /o Hello World, then typed it again, it would say "Please do not say the same thing"


Re: Prevent from saying the same thing 2 times? - DRIFT_HUNTER - 22.06.2010

Quote:
Originally Posted by ♂ Antonio [G-RP
]
How do you do this aswell. Like if I typed /o Hello World, then typed it again, it would say "Please do not say the same thing"
Check in filterscripts i think its bare or something (you get that FS when you download server)


Re: Prevent from saying the same thing 2 times? - Antonio [G-RP] - 22.06.2010

It's caled 'base' and no, it doesn't have it


Re: Prevent from saying the same thing 2 times? - Nero_3D - 22.06.2010

Quote:
Originally Posted by ♂ Antonio [G-RP
]
It's caled 'base' and no, it doesn't have it
check baseaf, it should be there, too


Re: Prevent from saying the same thing 2 times? - Antonio [G-RP] - 22.06.2010

Oh, aha, it is. Thanks


Re: Prevent from saying the same thing 2 times? - mprofitt - 22.06.2010

pawn Код:
GetPVarString(playerid,"text", test, sizeof(test))
if(!strcmp(text, test, false, strlen(text))
{
    SetPVarString(playerid,"text", text);  
    // Do your thing
}
else
{
    // Don't say the same thing twice.
}