12.11.2012, 18:53
hey everyone,
it gives me this error:
now the lines of the error are:
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
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;
}
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
pawn Код:
if(text[0] == '@cash')
{
greets niels