jetzt bin ich verwirrt xD
HILFE wichtig: Frage zum Thema OOC
- OptiiC_x3
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
if(SpielerInfo[playerid][pFraktion]==1)
das steht für die Fraktion 1 du musst die Abfrage eh anpassen ob member oder leader was auch immer wenn du member und leader abfragst dann dazwischen so machen
if(SpielerInfo[playerid][pFraktion]==1 SpielerInfo[playerid][pFraktionLeader]==1 )
dies ist nur als Muster da
-
nach langer Zeit geschaft Danke an euch
Doch nicht fertig..
Grade noch was Aufgefallen... (Scheiß Müdigkeit...)
C:\Users\Maier\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(4491) : error 029: invalid expression, assumed zero
Zeile 4491:
public SetPlayerToTeamColor(playerid); -
Nimm das Semikolon weg
-
C:\Users\Maier\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(4491) : error 029: invalid expression, assumed zero
C:\Users\Maier\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(4492) : error 001: expected token: ";", but found "{"public SetPlayerToTeamColor(playerid)
{ -
zeile daüber
-
was meinst du mit Zeile darüber?
-
Du sollst bitte die Zeile darüber posten.
-
ne zeile über den Public da fehlt wohl was
-
ich weiß nicht was du meinst.. kann aber auch von meiner übermüdung kommen...
-
was steht über den hier?
public SetPlayerToTeamColor(playerid)
2-3 Zeilen Posten die über public SetPlayerToTeamColor(playerid) stehen
-
-
hä poste mal alles was damit zu tun hat
-
Spoiler anzeigen public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 0 PlayerInfo[playerid][pLeader] == 0)
{
SetPlayerColor(playerid,zivicolor);
}
if (PlayerInfo[playerid][pMember] == 1 PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerColor(playerid,copcolor);
}
if (PlayerInfo[playerid][pMember] == 2 PlayerInfo[playerid][pLeader] == 2)
{
SetPlayerColor(playerid,fbicolor);
}
if (PlayerInfo[playerid][pMember] == 3 PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerColor(playerid,armycolor);
}
if (PlayerInfo[playerid][pMember] == 4 PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerColor(playerid,mediccolor);
}
if (PlayerInfo[playerid][pMember] == 5 PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerColor(playerid,lcncolor);
}
if (PlayerInfo[playerid][pMember] == 6 PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerColor(playerid,yakuzacolor);
}
if (PlayerInfo[playerid][pMember] == 7 PlayerInfo[playerid][pLeader] == 7)
{
SetPlayerColor(playerid,presidentcolor);
}
if (PlayerInfo[playerid][pMember] == 8 PlayerInfo[playerid][pLeader] ==
{
SetPlayerColor(playerid,hitmancolor);
}
if (PlayerInfo[playerid][pMember] == 9 PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerColor(playerid,cnncolor);
}
if (PlayerInfo[playerid][pMember] == 10 PlayerInfo[playerid][pLeader] == 10)
{
SetPlayerColor(playerid,taxicolor);
}
if (PlayerInfo[playerid][pMember] == 11 PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerColor(playerid,fahrlehrercolor);
}
if (PlayerInfo[playerid][pMember] == 12 PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerColor(playerid,cripzcolor);
}
if (PlayerInfo[playerid][pMember] == 13 PlayerInfo[playerid][pLeader] == 13)
{
SetPlayerColor(playerid,gscolor);
}
if (PlayerInfo[playerid][pMember] == 14 PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerColor(playerid,ballascolor);
}
if (PlayerInfo[playerid][pMember] == 15 PlayerInfo[playerid][pLeader] == 15)
{
SetPlayerColor(playerid,bikerls);
}
if (PlayerInfo[playerid][pMember] == 16 PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerColor(playerid,vagos);
}
}
}Spoiler anzeigen //===============================Fraktionfarben================================
#define wantedcolor 0xFFF000FF // Wanted Farbe
#define zivicolor 0xFFFFFFFF // Zivi Farbe
#define copcolor 0x007DFFFF // Cop Farbe
#define fbicolor 0x0A00FFFF // Fbi Farbe
#define armycolor 0x005600FF // Army Farbe
#define mediccolor 0xB90000FF // Medic Farbe
#define lcncolor 0x00FF00FF // Lcn Farbe
#define yakuzacolor 0xCC66CCFF // Yakuza Farbe
#define presidentcolor 0xAB5E26FF // President Farbe
#define hitmancolor 0x6F3E2BFF // Hitman Farbe
#define cnncolor 0xA8FFCAEC // Cnn Farbe
#define taxicolor 0xFFFF00FF // Taxi Farbe
#define fahrlehrercolor 0x00F5FFFF // Fahrlehrer Farbe
#define cripzcolor 0xA000FFFF // Cripz Farbe
#define gscolor 0x00DE00FF // Groove Street Farbe
#define ballascolor 0xD900D3C8 // Ballas
#define bikerls 0x000000FF // Biker LS
#define vagos 0xFFB400FF // Vagos -
das ist doch richtig ich meinte über den Public das da ich aus 2 Zeilen nix erkennen kann
-
Spoiler anzeigen Function SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pTot] == 1 && PlayerInfo[playerid][pLevel] > 2 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
if(IsPlayerInFrac(playerid, 1))
{Spoiler anzeigen }
else
{Spoiler anzeigen }
TogglePlayerControllable(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,895.1538,-1119.9735,24.5863);
SetPlayerCameraPos(playerid, 913.4496,-1102.9392,34.3235);
SetPlayerCameraLookAt(playerid, 910.9415,-1102.5831,34.3235);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
FreezePlayer(playerid);
return 1;
}
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "NeuerBot", true))
{
PlayerInfo[playerid][pCarLic] = 1;
PlayerInfo[playerid][pChar] = 255;
PlayerInfo[playerid][pJob] = 14;
SetPlayerSkin(playerid, 255);
PutPlayerInVehicle(playerid, car_BulletLS, 0);
}
}
if(PlayerInfo[playerid][pTut] == 0 && !IsPlayerNPC(playerid))
{
SetPlayerPos(playerid,1.7639,27.0334,1199.5938,357.0716);
SetPlayerCameraPos(playerid,1.5656,30.1579,1199.5938);
SetPlayerCameraLookAt(playerid,1.8364,29.4729,1199.5938);
SetPlayerInterior(playerid, 1);
SetPlayerSkin(playerid,60);
AtRegestration[playerid] = 1;
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid, DIALOG_MOW, DIALOG_STYLE_MSGBOX, "Geschlecht", "Um dich auch ein Bisschen besser kennen zu lernen,\nGib bitte dein Geschlecht an.","Männlich","Weiblich");
}
new rand;
if(PlayerPaintballing[playerid] != 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 24, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
return 1;
}
/*if(KnastTime[playerid] > 0)
{
SetPlayerToKnast(playerid,Knast[playerid]);
SendClientMessage(playerid, COLOR_LIGHTRED, " Flüchten bringt nichts, zurück in die Zelle!");
SetPlayerInterior(playerid,3);
return 1;
}*/
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,219.4217,110.5207,999.0156);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_LIGHTRED, "Flüchten bringt nichts, zurück in die Zelle!");
return 1;
}
if(PlayerInfo[playerid][pGangJailed] == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 218.9510,-231.8540,1.7786);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_LIGHTRED, " Du befindest dich noch im GangJail!");
return 1;
} if (PlayerInfo[playerid][pMember] == 1 PlayerInfo[playerid][pLeader] == 1)// LS Police spawn -
ehm pack mal deine If abfrage in der Function rein
dann is der error weg du hast den da wo alles zuende ist -
wie jetzt ? sorry bin extrem müde aber will das fertig bekommen
-
lösch das hier und gut ist
if (PlayerInfo[playerid][pMember] == 1 PlayerInfo[playerid][pLeader] == 1)// LS Police spawn
-
C:\Users\Maier\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(4490) : error 029: invalid expression, assumed zero
C:\Users\Maier\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(4491) : error 001: expected token: ";", but found "{" -