strfind
#5

Quote:
Originally Posted by SyS
Посмотреть сообщение
That code won't work.You are over complicating your code.There's no need for that string variable itself and the outer loop iterates only once.A string is collection or array of characters.You can check each character one by one and check if it is not alphabet(as i mentioned in pseudo code in above post).Or just use regular expression "^[A-Za-z]+$"
I checked your code and:
Quote:

C:\Users\Dakzde\Desktop\Servers and Sites\Bulgarian Server\gamemodes\BG.pwn(51) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Dakzde\Desktop\Servers and Sites\Bulgarian Server\gamemodes\BG.pwn(51) : error 017: undefined symbol "WHILE"
C:\Users\Dakzde\Desktop\Servers and Sites\Bulgarian Server\gamemodes\BG.pwn(51) : error 017: undefined symbol "string"
C:\Users\Dakzde\Desktop\Servers and Sites\Bulgarian Server\gamemodes\BG.pwn(51) : fatal error 107: too many error messages on one line

Error line:
PHP код:
WHILE string[++i] do 
Reply


Messages In This Thread
strfind - by Kraeror - 08.12.2018, 12:26
Re: strfind - by SyS - 08.12.2018, 12:51
Re: strfind - by Kraeror - 08.12.2018, 12:55
Re: strfind - by SyS - 08.12.2018, 13:08
Re: strfind - by Kraeror - 08.12.2018, 15:38
Re: strfind - by SyS - 08.12.2018, 15:46
Re: strfind - by Kraeror - 08.12.2018, 19:10

Forum Jump:


Users browsing this thread: 3 Guest(s)