Errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors (
/showthread.php?tid=507578)
Remove Please -
VanSiera - 18.04.2014
Removed
Re: Errors -
Conradus - 18.04.2014
You forgot the ending bracket in "GetTimeAsStringEx(TopRaceTimes[raceid][i])".
Код:
if(GetPlayerLanguage(playerid)==LANG_DE)
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s With %s || %s ",i+1,TopRaceDrivers[raceid][i],GetTimeAsStringEx(TopRaceTimes[raceid][i]),GetVehicleModelName(GetVehicleModel));
else
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s With %s || %s ",i+1,TopRaceDrivers[raceid][i],GetTimeAsStringEx(TopRaceTimes[raceid][i]),GetVehicleModelName(GetVehicleModel));
SendClientMessageEx(playerid,COLOR_WHITE,string);
top_times=true;
Re: Errors -
VanSiera - 18.04.2014
Removed
Re: Errors -
VanSiera - 18.04.2014
Removed
Re: Errors -
VanSiera - 18.04.2014
Removed
Re: Errors -
Conradus - 18.04.2014
You need to pass the vehicleid to "GetVehicleModel". Try this:
Код:
if(GetPlayerLanguage(playerid)==LANG_DE)
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s With %s || %s ",i+1,TopRaceDrivers[raceid][i],GetTimeAsStringEx(TopRaceTimes[raceid][i]),GetVehicleModelName(GetVehicleModel(GetPlayerVehicleID(playerid))));
else
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s With %s || %s ",i+1,TopRaceDrivers[raceid][i],GetTimeAsStringEx(TopRaceTimes[raceid][i]),GetVehicleModelName(GetVehicleModel(GetPlayerVehicleID(playerid)));
SendClientMessageEx(playerid,COLOR_WHITE,string);
top_times=true;
Re: Errors -
VanSiera - 18.04.2014
Thanks