Ja meine Fehler blicke da nicht durch
Code
public TAXITIMER(playerid)
{
new MONEYTIMER[64];
if(GetPlayerVehicleID(playerid) == TAXICAR[0])
{
alle fehler hier ==> new TAXIMAXMONEY[playerid] = TAXIMAXMONEY[playerid] + TAXIPREIS[TAXICAR[0]];
format(MONEYTIMER,sizeof(MONEYTIMER),"Endsumme: %d",MAXMONEYTAXI);
TextDrawSetString(Text:TAXAMETERENDSUMME[playerid],MONEYTIMER);
TAXITIMERKILLER[playerid] = SetTimerEx("TAXIPREIS",Sek*30,0,"i",playerid);
}
else if(GetPlayerVehicleID(playerid) == TAXICAR[1])
{
new TAXIMAXMONEY[playerid] = TAXIMAXMONEY[playerid] + TAXIPREIS[TAXICAR[1]];
format(MONEYTIMER,sizeof(MONEYTIMER),"Endsumme: %d",MAXMONEYTAXI);
TextDrawSetString(Text:TAXAMETERENDSUMME[playerid],MONEYTIMER);
TAXITIMERKILLER[playerid] = SetTimerEx("TAXIPREIS",Sek*30,0,"i",playerid);
}
else if(GetPlayerVehicleID(playerid) == TAXICAR[2])
{
new TAXIMAXMONEY[playerid] = TAXIMAXMONEY[playerid] + TAXIPREIS[TAXICAR[2]];
format(MONEYTIMER,sizeof(MONEYTIMER),"Endsumme: %d",MAXMONEYTAXI);
TextDrawSetString(Text:TAXAMETERENDSUMME[playerid],MONEYTIMER);
TAXITIMERKILLER[playerid] = SetTimerEx("TAXIPREIS",Sek*30,0,"i",playerid);
}
else if(GetPlayerVehicleID(playerid) == TAXICAR[3])
{
new TAXIMAXMONEY[playerid] = TAXIMAXMONEY[playerid] + TAXIPREIS[TAXICAR[3]];
format(MONEYTIMER,sizeof(MONEYTIMER),"Endsumme: %d",MAXMONEYTAXI);
TextDrawSetString(Text:TAXAMETERENDSUMME[playerid],MONEYTIMER);
TAXITIMERKILLER[playerid] = SetTimerEx("TAXIPREIS",Sek*30,0,"i",playerid);
}
else if(GetPlayerVehicleID(playerid) == TAXICAR[4])
{
new TAXIMAXMONEY[playerid] = TAXIMAXMONEY[playerid] + TAXIPREIS[TAXICAR[4]];
format(MONEYTIMER,sizeof(MONEYTIMER),"Endsumme: %d",MAXMONEYTAXI);
TextDrawSetString(Text:TAXAMETERENDSUMME[playerid],MONEYTIMER);
TAXITIMERKILLER[playerid] = SetTimerEx("TAXIPREIS",Sek*30,0,"i",playerid);
}
else if(GetPlayerVehicleID(playerid) == TAXICAR[5])
{
new TAXIMAXMONEY[playerid] = TAXIMAXMONEY[playerid] + TAXIPREIS[TAXICAR[5]];
format(MONEYTIMER,sizeof(MONEYTIMER),"Endsumme: %d",MAXMONEYTAXI);
TextDrawSetString(Text:TAXAMETERENDSUMME[playerid],MONEYTIMER);
TAXITIMERKILLER[playerid] = SetTimerEx("TAXIPREIS",Sek*30,0,"i",playerid);
}
else if(GetPlayerVehicleID(playerid) == TAXICAR[6])
{
alle fehler hier in der zeiel ==> new TAXIMAXMONEY[playerid] = TAXIMAXMONEY[playerid] + TAXIPREIS[TAXICAR[6]];
format(MONEYTIMER,sizeof(MONEYTIMER),"Endsumme: %d",MAXMONEYTAXI);
TextDrawSetString(Text:TAXAMETERENDSUMME[playerid],MONEYTIMER);
TAXITIMERKILLER[playerid] = SetTimerEx("TAXIPREIS",Sek*30,0,"i",playerid);
}
return 1;
}
Alles anzeigen
Fehler