Input Dialog
#2

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
Hi everyone,
I'm having a problem with a dialog i am creating to sell wood which has been cut from trees.
This line:

PHP код:
if(inputtext[0] == '10'
Gives me the following error(s):
PHP код:
D:\SAMPSERVER\Los Angeles Roleplay\gamemodes\New.pwn(13674) : error 027invalid character constant
D
:\SAMPSERVER\Los Angeles Roleplay\gamemodes\New.pwn(13674) : error 027invalid character constant 
What could i do to fix this?
'10' has actually two characters '1' and '0'
you are able to store only 1 character at each slot, so you may instead use

PHP код:
if(inputtext[0] == '1' && inputtext[1] == '0'
Reply


Messages In This Thread
Input Dialog - by jasperschellekens - 09.04.2017, 10:13
Re: Input Dialog - by Eoussama - 09.04.2017, 10:19
Re: Input Dialog - by jasperschellekens - 10.04.2017, 12:25
Re: Input Dialog - by OneDay - 10.04.2017, 12:28
Re: Input Dialog - by jasperschellekens - 10.04.2017, 12:35
Re: Input Dialog - by GangstaSunny. - 10.04.2017, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)