whats wrong with this ?
#1

hi guys , im really tired. i will explain as best as i can

i have this
pawn Код:
if(strfind(params,"/")
       if(strfind(params,":")
       if(strfind(params,"?")
       if(strfind(params,"<")
       if(strfind(params,">")
       if(strfind(params,"|")
       if(strfind(params,"\\")
       if(strfind(params,"*")
       if(strfind(params,"\"")
but it's giving these errors:
pawn Код:
(15301) : error 001: expected token: ")", but found "if"
(15302) : error 001: expected token: ")", but found "if"
(15303) : error 001: expected token: ")", but found "if"
(15304) : error 001: expected token: ")", but found "if"
(15305) : error 001: expected token: ")", but found "if"
(15306) : error 001: expected token: ")", but found "if"
(15307) : error 001: expected token: ")", but found "if"
(15308) : error 001: expected token: ")", but found "if"
(15309) : error 001: expected token: ")", but found "return"
(15320) : error 055: start of function body without function header
just say if you want the full command or any other lines.

thanks
Reply
#2

pawn Код:
if(strfind(params,"/"))
       if(strfind(params,":"))
       if(strfind(params,"?"))
       if(strfind(params,"<"))
       if(strfind(params,">"))
       if(strfind(params,"|"))
       if(strfind(params,"\\"))
       if(strfind(params,"*"))
       if(strfind(params,"\""))
You forgot this one ")"
Reply
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
pawn Код:
if(strfind(params,"/"))
       if(strfind(params,":"))
       if(strfind(params,"?"))
       if(strfind(params,"<"))
       if(strfind(params,">"))
       if(strfind(params,"|"))
       if(strfind(params,"\\"))
       if(strfind(params,"*"))
       if(strfind(params,"\""))
You forgot this one ")"
thanks..
but

pawn Код:
C:\Users\Lewis2\Desktop\my server\gamemodes\X-ST.pwn(15309) : error 001: expected token: ")", but found "return"
C:\Users\Lewis2\Desktop\my server\gamemodes\X-ST.pwn(15320) : error 055: start of function body without function header
C:\Users\Lewis2\Desktop\my server\gamemodes\X-ST.pwn(16533) : warning 203: symbol is never used: "IsPlayerInDM"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
EDIT: Fixed them , thanks again
Reply
#4

put line 15309
and add top of script
pawn Код:
#pragma unused IsPlayerInDM
ah...sory you have edit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)