ja
//LSPD
#define lspdspawn 1520.0, 1541.0, 1655.0
//Medic
#define medicspawn 1520.0,1568.0,1510.0
//Vagos
#define vagosspawn 1767.8848,-1363.5009,15.7578,269.7619
ja
//LSPD
#define lspdspawn 1520.0, 1541.0, 1655.0
//Medic
#define medicspawn 1520.0,1568.0,1510.0
//Vagos
#define vagosspawn 1767.8848,-1363.5009,15.7578,269.7619
machs dir jetzt einfach und kopier die coords raus und füg sie einfach ein.
Wie soll das dann z-B aussehen?
Für den Vagosspawn
SetPlayerPos(playerid,1767.8848,-1363.5009,15.7578,269.7619);
Halt noch mit case davor etc.
//edit : Dasselbe machste auch noch beim mafiaspawn
Wo soll ich das hinsetzen?
da wo du den fehler mit dem VagosSpawn hattest?
halt die SetPlayerPos nur austauschen
Also soll ich das jetzt bei den hier machen?
old
{
case 0:{}
case 1:{SetPlayerPos(playerid,lspdspawn);SetPlayerColor(playerid,BLAU);}
case 2:{SetPlayerPos(playerid,mafiaspawn);GivePlayerWeapon(playerid,24,250);}
case 3:{SetPlayerPos(playerid,medicspawn);SetPlayerColor(playerid,ROT);}
case 4:{SetPlayerPos(playerid,vagosspawn);GivePlayerWeapon(playerid,24,250);}
case 4:{SetPlayerPos(playerid,1767.8848,-1363.5009,15.7578,269.7619);GivePlayerWeapon(playerid,24,250);}
So viel zum Vagosspawn
dann kommen neue errors..
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(735) : warning 202: number of arguments does not match definition
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(737) : warning 202: number of arguments does not match definition
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(741) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(741) : warning 215: expression has no effect
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(742) : warning 209: function "OnPlayerSpawn" should return a value
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(766) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Poste die Zeilen von 735-766
case 2:{SetPlayerPos(playerid,mafiaspawn);GivePlayerWeapon(playerid,24,250);}
case 3:{SetPlayerPos(playerid,medicspawn);SetPlayerColor(playerid,ROT);}
case 4:{SetPlayerPos(playerid,1767.8848,-1363.5009,15.7578,269.7619);GivePlayerWeapon(playerid,24,250);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
return 1;
Sry habe vorhin auch noch was editiert...kopiere case 4 nochmal alles^^
so?
case 0:{}
case 1:{SetPlayerPos(playerid,lspdspawn);SetPlayerColor(playerid,BLAU);}
case 2:{SetPlayerPos(playerid,mafiaspawn);GivePlayerWeapon(playerid,24,250);}
case 3:{SetPlayerPos(playerid,medicspawn);SetPlayerColor(playerid,ROT);}
case 4:{SetPlayerPos(playerid,1767.8848,-1363.5009,15.7578,269.7619);GivePlayerWeapon(playerid,24,250);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
return 1;
ne bei case 4 am ende ne geschweifte klammer
Okay Trozdem noch ein error
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(735) : warning 202: number of arguments does not match definition
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(737) : warning 202: number of arguments does not match definition
C:\Users\Marcel\Desktop\Black-Planet\gamemodes\New.pwn(766) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Jo...unten bei OnPlayerText haste ein return 1; was garnix bringt...mach das weg^^
//Edit : Das return 1; was in Zeile 766 ist
Okay danke dir Der server geht wieder
Immer wieder gerne