using strtok to set a price - 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: using strtok to set a price (
/showthread.php?tid=87415)
using strtok to set a price -
Annihalation - 20.07.2009
Is it possible to use an strtok to set a price? I want my command "/bizforsale <price>" to work, but i dont want them to be able to do "/bizforsale <words here, not numbers>". Could someone help me do an if that wont crash the server?
like a
kind of thing? thanks. I tried but I cant seem to get it right.