Wrong with this code?
#1

whats wrong with this code ive tryed almost everything with "new String[128];". Code:

Код:
25597           if(TransportDuty[playerid] > 0)
25598			{
25599			    if(TransportDuty[playerid] == 1)
25600			    {
25601			        TaxiDrivers -= 1;
25602			    }
25603			    else if(TransportDuty[playerid] == 2)
25604			    {
25605			        BusDrivers -= 1;
25606			    }
25607			    TransportDuty[playerid] = 0;
25608				new String[128];
25609				format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]);
25610				SendClientMessage(playerid, COLOR_WHITE, string);
25611				SafeGivePlayerMoney(playerid, TransportMoney[playerid]);
25612				/*ConsumingMoney[playerid] = 1;*/
25613				TransportValue[playerid] = 0;
25614				TransportMoney[playerid] = 0;
25615				return 1;
25616			}
ERROR:

Quote:

(25609) : error 017: undefined symbol "string"
(25609) : error 017: undefined symbol "string"
(25609) : error 029: invalid expression, assumed zero
(25609) : fatal error 107: too many error messages on one line

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: 3 Guest(s)