stock RefreshSpeedo(playerid){ new string[512]; new Float:speed; new model, color1, color2; if(IsPlayerInAnyVehicle(playerid)) { new Float:SPD, Float:vx, Float:vy, Float:vz; GetVehicleVelocity(GetPlayerVehicleID(playerid), vx,vy,vz);SPD = floatsqroot(((vx*vx)+(vy*vy))+(vz*vz))*100; new Float:VH; GetVehicleHealth(GetPlayerVehicleID(playerid), VH); new SS[4];format(SS,4,\"%f\",speed); format(string, sizeof(string), \"Sebesség: %.1f km/h~n~Épség: %.1f~n~Név: %s~n~Helyzet:~n~%s\",SPD*SPEED_MULTIPLIER,VH,VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); if(TextDrawShow[playerid] == 1) { GetVehicleColor(GetPlayerVehicleID(playerid), color1, color2); model = GetVehicleModel(GetPlayerVehicleID(playerid)); PlayerTextDrawSetString(playerid, Speedo1[playerid], string); PlayerTextDrawSetPreviewModel(playerid, Speedo3[playerid], model); PlayerTextDrawSetPreviewVehCol(playerid, Speedo3[playerid], color1, color2);} }return 1;}
2.:Valószínű ahol a kocsikat sorolod fel a változóban, ott töröltél egy sort így csúszik az egész.