textVelocimetro[4] = TextDrawCreate(531.000000, 387.000000, "Veiculo~n~~n~Velocidade~n~~n~TipoCombustivel~n~~n~Lataria");
TextDrawAlignment(textVelocimetro[4], 3);
TextDrawBackgroundColor(textVelocimetro[4], 0);
TextDrawFont(textVelocimetro[4], 2);
TextDrawLetterSize(textVelocimetro[4], 0.210000, 0.799999);
TextDrawColor(textVelocimetro[4], -186);
TextDrawSetOutline(textVelocimetro[4], 0);
TextDrawSetProportional(textVelocimetro[4], 1);
TextDrawSetShadow(textVelocimetro[4], 1);
TextDrawSetSelectable(textVelocimetro[4], 0);
new vehicleid = GetPlayerVehicleID(playerid);
if(VeiculoDiesel(vehicleid))
{
textVelocimetro[4] = TextDrawCreate(531.000000, 387.000000, "Veiculo~n~~n~Velocidade~n~~n~Diesel~n~~n~Lataria");
TextDrawAlignment(textVelocimetro[4], 3);
TextDrawBackgroundColor(textVelocimetro[4], 0);
TextDrawFont(textVelocimetro[4], 2);
TextDrawLetterSize(textVelocimetro[4], 0.210000, 0.799999);
TextDrawColor(textVelocimetro[4], -186);
TextDrawSetOutline(textVelocimetro[4], 0);
TextDrawSetProportional(textVelocimetro[4], 1);
TextDrawSetShadow(textVelocimetro[4], 1);
TextDrawSetSelectable(textVelocimetro[4], 0);
}
//New
new tTextVelocimetro[MAX_PLAYERS];
//GameModeInit
for(new i; i < MAX_PLAYERS; i ++)
{
tTextVelocimetro[i] = TextDrawCreate(531.000000, 387.000000, "Veiculo~n~~n~Velocidade~n~~n~Diesel~n~~n~Lataria");
TextDrawAlignment(tTextVelocimetro[i], 3);
TextDrawBackgroundColor(tTextVelocimetro[i], 0);
TextDrawFont(tTextVelocimetro[i], 2);
TextDrawLetterSize(tTextVelocimetro[i], 0.210000, 0.799999);
TextDrawColor(tTextVelocimetro[i], -186);
TextDrawSetOutline(tTextVelocimetro[i], 0);
TextDrawSetProportional(tTextVelocimetro[i], 1);
TextDrawSetShadow(tTextVelocimetro[i], 1);
TextDrawSetSelectable(tTextVelocimetro[i], 0);
}
//Stock
new vehicleid = GetPlayerVehicleID(playerid);
if(VeiculoDiesel(vehicleid))
{
TextDrawSetString(tTextVelocimetro[playerid],"Veiculo~n~~n~Velocidade~n~~n~Diesel~n~~n~Lataria");
}
Isso pode resolver.
pawn Код:
|
stock VeiculoDiesel(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case 403,406,407,408,414,416,423,427,428,433,437,444,455,456,498,499,508,514,515,524,525,544,552,556,557,573,578,681,609: return 1;
}
return 0;
}
for(new i; i < MAX_PLAYERS; i ++)
{
tTextVelocimetro[i] = TextDrawCreate(531.000000, 387.000000, "Veiculo~n~~n~Velocidade~n~~n~Diesel~n~~n~Lataria");
TextDrawAlignment(tTextVelocimetro[i], 3);
TextDrawBackgroundColor(tTextVelocimetro[i], 0);
TextDrawFont(tTextVelocimetro[i], 2);
TextDrawLetterSize(tTextVelocimetro[i], 0.210000, 0.799999);
TextDrawColor(tTextVelocimetro[i], -186);
TextDrawSetOutline(tTextVelocimetro[i], 0);
TextDrawSetProportional(tTextVelocimetro[i], 1);
TextDrawSetShadow(tTextVelocimetro[i], 1);
TextDrawSetSelectable(tTextVelocimetro[i], 0);
}
unico.pwn(290) : warning 213: tag mismatch unico.pwn(291) : warning 213: tag mismatch unico.pwn(292) : warning 213: tag mismatch unico.pwn(293) : warning 213: tag mismatch unico.pwn(294) : warning 213: tag mismatch unico.pwn(295) : warning 213: tag mismatch unico.pwn(296) : warning 213: tag mismatch unico.pwn(297) : warning 213: tag mismatch unico.pwn(298) : warning 213: tag mismatch unico.pwn(299) : warning 213: tag mismatch
new Text:tTextVelocimetro[MAX_PLAYERS];
if(VeiculoDiesel(vehicleid))
{
TextDrawSetString(tTextVelocimetro[playerid],"Veiculo~n~~n~Velocidade~n~~n~Diesel~n~~n~Lataria");
}
Me desulpe, percebi o meu erro.. Use:
pawn Код:
pawn Код:
|