Hey,
Habn kleines Problem , mit dem Timer bei Car Respawn
C:\Users\Daniel Keller\Desktop\Script\AR0.6b.pwn(4941) : error 054: unmatched closing brace ("}")
C:\Users\Daniel Keller\Desktop\Script\AR0.6b.pwn(4942) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Zeile 4941 = }
Zeile 4942 = return 1;
Der Timer
public CarRespawn(playerid)
{
new string[256];
new sendername[MAX_PLAYER_NAME];
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new car = 1; car <= 450; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[System] %s hat alle Unbesetzten Autos Respawnt!", sendername);
BroadCast(COLOR_RED,string);
}
}
return 1;
}