27.09.2010, 21:50
whats wrong with this code ive tryed almost everything with "new String[128];". Code:
ERROR:
Код:
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 }
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 |