if(inputtext[0] == '10')
D:\SAMPSERVER\Los Angeles Roleplay\gamemodes\New.pwn(13674) : error 027: invalid character constant
D:\SAMPSERVER\Los Angeles Roleplay\gamemodes\New.pwn(13674) : error 027: invalid character constant
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 код:
PHP код:
|
if(inputtext[0] == '1' && inputtext[1] == '0')
if(inputtext[0] == '1')
{
// do something
}
if(inputtext[0] == '1' && inputtext[1] == '0')
{
// do something
}
if(inputtext[0] == '1')
{
// do something
}
else if(inputtext[0] == '1' && inputtext[1] == '0')
{
// do something
}
if(inputtext[0] == '1' && inputtext[1] == '0')
{
// do something
}
else if(inputtext[0] == '1')
{
// do something
}
if(strval(inputtext) > 0 && strval(inputtext) < 41)
{
new string[128];
format(string,sizeof(string),"You sold %d ...",strval(inputtext));
SendClientMessage (playerid,-1,string);
}