@cash text giving errors...
#1

hey everyone,

pawn Код:
if(text[0] == '@cash')
    {
        new money = GetPlayerMoney(playerid);
        new string[128], playerName[25];
        GetPlayerName(playerid, playerName, 25);
        format(string, sizeof(string), "%s {FFFFFF}(ID:{FF0000}%d{FFFFFF}): $%d", playerName, playerid, money);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 0;
    }
it gives me this error:
pawn Код:
D:\Program Files\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(9111) : error 027: invalid character constant
D:\Program Files\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(9111) : error 027: invalid character constant
now the lines of the error are:
pawn Код:
if(text[0] == '@cash')
    {
now i found out that its the "cash", when i remove the "cash" the errors dissapear, but when i do "@cash" instead of '@зash' that doesnt works neither, so how to do this?

greets niels
Reply


Messages In This Thread
@cash text giving errors... - by niels44 - 12.11.2012, 18:53
Re: @cash text giving errors... - by nGen.SoNNy - 12.11.2012, 18:59
Re: @cash text giving errors... - by niels44 - 12.11.2012, 19:01
Re: @cash text giving errors... - by nGen.SoNNy - 12.11.2012, 19:01
Re: @cash text giving errors... - by niels44 - 12.11.2012, 19:03
Re: @cash text giving errors... - by nGen.SoNNy - 12.11.2012, 19:05
Re: @cash text giving errors... - by Jefff - 12.11.2012, 19:05
Re: @cash text giving errors... - by niels44 - 12.11.2012, 19:09
Re: @cash text giving errors... - by Jefff - 12.11.2012, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)