SA-MP Forums Archive
Need to change this. - 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: Need to change this. (/showthread.php?tid=173023)



Need to change this. - willsuckformoney - 01.09.2010

pawn Код:
if(text[0] == 'F')
I has that right now in my script and when I compile it works but that not what i wanted, when i do this it fails.

pawn Код:
if(text[0] == 'FS')
With these errors

Код:
(133) : error 027: invalid character constant
(133) : error 017: undefined symbol "S"  <-- is the "S" in "SF"
(133 -- 134) : error 029: invalid expression, assumed zero
(133 -- 134) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Anyone know how to fix or change this to make it work?


Re: Need to change this. - Andries - 01.09.2010

notice text[0]

s would be [1]


Re: Need to change this. - Grim_ - 01.09.2010

pawn Код:
if(text[0] == 'F' && text[1] == 'S')
[This forum requires that you wait 120 seconds between posts. Please try again in 79 seconds.] - Due to this message, I'm being forced to wait 79 seconds to help you! How does that make you feel? Send a personal message to a global moderator explaining your feelings in an attempt to remove this shit (And still 34 seconds left..)


Re: Need to change this. - willsuckformoney - 01.09.2010

omq loves u Grim now i can continue with what I'm working on


Re: Need to change this. - Grim_ - 01.09.2010

Nice to know! However I don't encourage E-Relations, sorry

[This forum requires that you wait 120 seconds between posts. Please try again in 57 seconds.] - ..|..


Re: Need to change this. - willsuckformoney - 01.09.2010

Maybe I don't