[HELP] error 027: invalid character constant [+REP]
#2

try this:
PHP код:
CMD:eventbank(playeridparams[])
{
    if(!
playerData[playerid][playerLoggedIn]) return SCM(playeridCOLOR_WHITE""WORD_SERVER"You must be logged in to use this command.");

    new 
selection;
    if(
sscanf(params"s"selection)) return SCM(playeridCOLOR_WHITE""WORD_SERVER"{B7B7B7}Usage: {FFFFFF}/eventbank [BALANCE\HOST\DONATE]");

    if(!
strcmp(selection"donate"true))
    {
        new 
amountstring[128];
        if(
sscanf(params"i"amount)) return SCM(playeridCOLOR_WHITE""WORD_SERVER"{B7B7B7}Usage: {FFFFFF}/eventbank donate [amount]");
        if(
amount 1000) return SCM(playeridCOLOR_WHITE""WORD_SERVER"You cannot donate less than $1,000.");

        
format(stringsizeof(string), ""WORD_SERVER"Thanks for donating $%s to the event bank, %s(%d)."FormatNumber(amount), GetName(playerid), playerid);
        
SendClientMessageToAll(COLOR_WHITEstring);
        
IncreaseEBBalance(amount);
    }
    if(!
strcmp(selection"host"true))
    {
        new 
string[128];
        
format(stringsizeof(string), ""WORD_SERVER"The event bank host is: %s"eventBank[host]);
        
SCM(playeridCOLOR_WHITEstring);
    }
    if(!
strcmp(selection"balance"true))
    {
        new 
string[128];
        
format(stringsizeof(string), ""WORD_SERVER"The event bank balance is: $%s"FormatNumber(eventBank[balance]));
        
SCM(playeridCOLOR_WHITEstring);
    }
    return 
1;

Reply


Messages In This Thread
[HELP] error 027: invalid character constant [+REP] - by GuthiX - 20.09.2015, 12:54
Re: [HELP] error 027: invalid character constant [+REP] - by jlalt - 20.09.2015, 13:05

Forum Jump:


Users browsing this thread: 3 Guest(s)