Strange Errors
#1

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.
Reply
#2

Probably
pawn Код:
if(strfind(params, " ' ", true) != -1)
     return SendClientMessage(playerid, COLOR_GREY, "You can't use the ' character!");
Reply
#3

"= !" doesn't exist. it should be "!=".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)