public KocsiText(playerid)
{
new S[256], Float: elet, vehicleid, uzemanyag[50], uzemanyagszint[50];
new S2[256], S3[256];
for(new player; player < MAX_PLAYERS; player++)
{
if( IsPlayerConnected(player))
{
if(IsPlayerInAnyVehicle(player))
{
vehicleid = GetPlayerVehicleID(player);
GetVehicleHealth(vehicleid, elet);
GetVehicleHealth(vehicleid, elet);
if(elet < 300) return KocsiOff(vehicleid);
switch(vInfo[vehicleid][UZEMANYAG])
{
case 40: { uzemanyagszint = \"|||||\"; }
case 32 .. 39: { uzemanyagszint = \"||||~r~|\"; }
case 24 .. 31: { uzemanyagszint = \"|||~r~||\"; }
case 16 .. 23: { uzemanyagszint = \"||~r~|||\"; }
case 8 .. 15: { uzemanyagszint = \"|~r~||||\"; }
case 0 .. 7: { uzemanyagszint = \"~r~|||||\"; }
}
switch(vInfo[vehicleid][UZEMANYAGTIPUS])
{
case BENZIN: { uzemanyag = \"B\"; }
case DIESEL: { uzemanyag = \"D\"; }
}
if(vInfo[vehicleid][UZEMANYAGTIPUS] > 0)
{
format(S, sizeof(S), \"%s\", uzemanyag);
PlayerTextDrawSetString(Muszerfal[playerid][3], S);
format(S2, sizeof(S2), \"%s\", uzemanyagszint);
PlayerTextDrawSetString(Muszerfal[playerid][4], S2);
format(S3, sizeof(S3), \"%d\", GetVehicleSpeed(vehicleid));
PlayerTextDrawSetString(Muszerfal[playerid][1], S3);
}
}
}
return 1;
}
SocialTown.pwn(10655) : warning 213: tag mismatch
SocialTown.pwn(10655) : error 035: argument type mismatch (argument 2)
SocialTown.pwn(10658) : warning 213: tag mismatch
SocialTown.pwn(10658) : error 035: argument type mismatch (argument 2)
SocialTown.pwn(10661) : warning 213: tag mismatch
SocialTown.pwn(10661) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB