What's the problem here? - 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: What's the problem here? (
/showthread.php?tid=178658)
What's the problem here? -
ZamaXor - 23.09.2010
Hello World.
When i want to use 10 in the inputtext it gives me error. But when i use 1 below 9 its okay. Why can't i use 10?
Error:
pawn Код:
error 027: invalid character constant
Re: What's the problem here? -
[HiC]TheKiller - 23.09.2010
10 is 2 characters long hence using 2 cells ([0] and [1]).
Just do this
pawn Код:
if(strcmp(inputtext, "10", true, 2))
Re: What's the problem here? -
ZamaXor - 23.09.2010
Quote:
Originally Posted by [HiC]TheKiller
10 is 2 characters long hence using 2 cells ([0] and [1]).
Just do this
pawn Код:
if(strcmp(inputtext, "10", true, 2))
|
Works. Thank you man.