Moin,
habe versucht, das jede 5 Sekunden ein Bot spawnt. Bekomme aber eine Fehlermeldung,
weiß wer was ich machen kann?
public ConnectBots(ID)
{
switch(ID)
{
case 1: ConnectNPC("Manfred","train_ls");
case 2: ConnectNPC("Dirk","train_sf");
case 3: ConnectNPC("Mark","train_lv");
case 4: ConnectNPC("Dustin","none");
case 5: ConnectNPC("Dieter","none");
case 6: ConnectNPC("Bus_LS","Bus_LS");
case 7: ConnectNPC("Bus_LSS2","Bus_LSS2");
case 8: ConnectNPC("schiff_man1","schiff_man1");
case 9: ConnectNPC("schiff_man2","schiff_man2");
case 10: ConnectNPC("schiff1","schiff1");
case 11: ConnectNPC("Swetlana","none");
case 12: ConnectNPC("Adolf","Adolf");
case 13: ConnectNPC("Jamie","Jamie");
case 14: ConnectNPC("Oliver","Oliver");
case 15: return 1;
}
SetTimerEx("ConnectBots", 5000, 0, "i", ID+1);
SetTimerEx("ConnectBots", 5000, 0, "i", 1);
}
( forward vorhanden)
Error:
C:\Users\admin\Desktop\Allgemeines\newtown\gamemodes\Dieter.pwn(14754) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\Allgemeines\newtown\gamemodes\Dieter.pwn(14754) : error 004: function "ConnectBots" is not implemented
#push 14