Quote:
Originally Posted by ISmokezU
You need to update your include
Haven't really check your code I just indented it.
PHP Code:
StartNewGame()
{
if(CanPlay == 1)
{
new string[128];
ExportVehicleValue = MinCarValue+(random(MaxCarValue-MinCarValue));
SendClientMessageToAll(COLOR_YELLOW, "A new Export-Game has started!");
ChooseExportCar();
format(string, sizeof(string), "This time the ExportCompany wants a %s, the value of this car is: $%d,-", VehNames[GetVehicleModel(ExportVehicle) - 400], ExportVehicleValue);
SendClientMessageToAll(COLOR_YELLOW, string);
SendClientMessageToAll(COLOR_YELLOW, "The car is indicated with a yellow marker, the player who takes it first to the Export-place wins!");
for(new i; i < MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(ExportVehicle, i, 1, 0);
}
IsGameStarted = 1;
GameTimeLeft = RoundTime;
RoundTimer = SetTimer("StopGame", 10000, 1);
}
new Float:ExportCarPos[3];
GetVehiclePos(ExportVehicle,ExportCarPos[0],ExportCarPos[1],ExportCarPos[2]);
for(new i; i < GetPlayerPoolSize(); i++)
{
SetPlayerMapIcon(i, 99, ExportCarPos[0], ExportCarPos[1], ExportCarPos[2], 44, 0, MAPICON_GLOBAL);
}
}
|
Indented. But it still gives me this error :-
Code:
C:\Users\Rohit\Desktop\World of Fun\filterscripts\CarExport.pwn(709) : error 017: undefined symbol "GetPlayerPoolSize".
Which include should i update to fix this? Im running on 0.3.7 latest.