SA-MP Forums Archive
whats wrong with 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: whats wrong with this ? (/showthread.php?tid=263854)



whats wrong with this ? - Jay. - 23.06.2011

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


Re: whats wrong with this ? - =WoR=Varth - 23.06.2011

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 ")"


Re: whats wrong with this ? - Jay. - 23.06.2011

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


Re: whats wrong with this ? - Skaizo - 23.06.2011

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