Hallö Brotfische ![]()
ich will mal probieren im GF einen Textdraw anstadt des GameTextes nur bekomme ich für jedes %d oder %s ein Warning, die sehen dan so aus:
E:\RL Server\Server\gamemodes\ger.pwn(13183) : warning 202: number of arguments does not match definition
E:\RL Server\Server\gamemodes\ger.pwn(13194) : warning 202: number of arguments does not match definition
E:\RL Server\Server\gamemodes\ger.pwn(13194) : warning 202: number of arguments does not match definition
E:\RL Server\Server\gamemodes\ger.pwn(13205) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
Im Script:
public VehStateCheck()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(i)))
{
if(M_Bot[i][PAFK] == 0)
{
new Float:health,vehicleid = GetPlayerVehicleID(i),Float:value,Float:distance,Float:x,Float:y,Float:z;
GetPlayerPos(i, x, y, z);
distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[i][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[i][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[i][PCarZ])),2));
value = floatround(distance * 11000);
GetVehicleHealth(vehicleid,health);
if (health >= 0 && health <= 1000)
{
Textdraw2 = TextDrawCreate(510.000000, 405.000000, " %d Km/h",floatround(value/1400));
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 255);
TextDrawTextSize(Textdraw2, 640.000000, 0.000000);
Textdraw1 = TextDrawCreate(510.000000, 420.000000, " %d / %d Benzin",Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)));
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 660.000000, 0.000000);
Textdraw0 = TextDrawCreate(510.000000, 435.000000, " %s",VehicleName[GetVehicleModel(vehicleid)-400]);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 650.000000, 40.000000);
/*format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~g~ KM/H~n~~w~%d ~b~/~w~ %d~r~ Benzin~n~~g~~h~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
GameTextForPlayer(i,string,850,3);*/
}
PCarPos[i][PCarX] = x;
PCarPos[i][PCarY] = y;
PCarPos[i][PCarZ] = z;
}
}
}
return 1;
}
Hab ich falsche oder zuviele Parameter?
Ich rätzel da ein bischen rum ![]()
Hoffe ihr könnt den Fehler finden ![]()
Lg
Chris
P.S. WENN JEMAND DIE TEXTDRAWS KLAUT GIBT ES SCHLÄGE AUF DEN POPO!!! xDD