Wrong with this code?
#5

Quote:
Originally Posted by mmrk
Посмотреть сообщение
change String[128]; to string[128];
Quote:
Originally Posted by smeti
Посмотреть сообщение
replace S whit: s
Quote:
Originally Posted by bigcomfycouch
Посмотреть сообщение
pawn Код:
if(TransportDuty[playerid])
{
    new
        string[128];
    if(TransportDuty[playerid] == 1) --TaxiDrivers;
    else if(TransportDuty[playerid] == 2) --BusDrivers;
    TransportDuty[playerid] = 0;
    format(string, sizeof(string), "* You are now off duty and earned $%i.", TransportMoney[playerid]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    SafeGivePlayerMoney(playerid, TransportMoney[playerid]);
    /*ConsumingMoney[playerid] = 1;*/
    TransportValue[playerid] = 0;
    TransportMoney[playerid] = 0;
    return 1;
}
'String' should've been 'string'
Worked thanks
Reply


Messages In This Thread
Wrong with this code? - by FrankC - 27.09.2010, 21:50
Re: Wrong with this code? - by mmrk - 27.09.2010, 21:58
Re: Wrong with this code? - by smeti - 27.09.2010, 21:59
Re: Wrong with this code? - by bigcomfycouch - 27.09.2010, 21:59
Re: Wrong with this code? - by FrankC - 27.09.2010, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)