Strange Errors - 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)
+--- Thread: Strange Errors (
/showthread.php?tid=362852)
Strange Errors -
Dodo9655 - 25.07.2012
pawn Код:
if(strfind(params, " ' ", true) =! -1)
return SendClientMessage(playerid, COLOR_GREY, "You can't use the ' character!");
pawn Код:
secret.pwn(15993) : warning 211: possibly unintended assignment
secret.pwn(15993) : error 022: must be lvalue (non-constant)
secret.pwn(15993) : warning 215: expression has no effect
secret.pwn(15993) : error 001: expected token: ";", but found ")"
secret.pwn(15993) : error 029: invalid expression, assumed zero
secret.pwn(15993) : fatal error 107: too many error messages on one line
Basically I'm trying to look for the ' character in a string.
Re: Strange Errors -
FireCat - 25.07.2012
Probably
pawn Код:
if(strfind(params, " ' ", true) != -1)
return SendClientMessage(playerid, COLOR_GREY, "You can't use the ' character!");
Re: Strange Errors -
leonardo1434 - 25.07.2012
"= !" doesn't exist. it should be "!=".