HILFE wichtig: Frage zum Thema OOC

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
  • Wen du nur die zwei zeilen postest kann man nicht gut helfen.


    C:\Users\Maier\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(4491) : error 001: expected token: ";", but found "{"
    auf deutsch:
    C:\Users\Maier\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(4491) : error 001: erwartet token: ";", fand aber "{"
    In zeile 4491 fehlt der hier ==> ;


    MFG
    opdimus

  • ich schick mal den ganzen public .. (schonwieder :D)

    Spoiler anzeigen
    public SetPlayerToTeamColor(playerid)
    { // ZEILE 4491
    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] == 8)
    {
    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);
    }
    }
    }

  • Bitte im Pawn Code und Zeile markieren.

    [tabmenu][tab=Signatur,'http://bit.ly/1i4RY3v']

    Wie poste ich richtig?
    Nachdem du Google, die FAQ und die Suchfunktion erfolgreich ignoriert hast, erstellst du 2 bis 5 neue Themen in den falschen Unterforen mit lustigem Titel,
    zu vielen Ausrufezeichen und undeutlichem Text, unter dem sich jeder etwas anders vorstellen kann.



    Mr.Dubstep | GFX | Scripting | Hackerplace
    If Mr.DubStep don't have it, you don't need it.

    [tab=Spieler bei,'http://bit.ly/1db2jaf'][subtab=Hackerplace,'http://bit.ly/1bswN2T']


    Welch wunderschöner Hack ist heute vollzogen worden, könntest Du mir es denn sagen? Ein wunderschönes Browsergame, auch für Kleinigkeiten unterwegs. Erschaffe deinen eigenen Computer, nutze ihn um anderen das Geld zu rauben, schließe dich einem Clan an oder gründe selbst einen. Bleibe allein oder mit vielen Freunden.

  • Code
    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] == 8)		{	    	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);		}	}
    }




    das wird dann immer so ...

  • Bearbeite es im Quellcode und schick es dann ab.

    [tabmenu][tab=Signatur,'http://bit.ly/1i4RY3v']

    Wie poste ich richtig?
    Nachdem du Google, die FAQ und die Suchfunktion erfolgreich ignoriert hast, erstellst du 2 bis 5 neue Themen in den falschen Unterforen mit lustigem Titel,
    zu vielen Ausrufezeichen und undeutlichem Text, unter dem sich jeder etwas anders vorstellen kann.



    Mr.Dubstep | GFX | Scripting | Hackerplace
    If Mr.DubStep don't have it, you don't need it.

    [tab=Spieler bei,'http://bit.ly/1db2jaf'][subtab=Hackerplace,'http://bit.ly/1bswN2T']


    Welch wunderschöner Hack ist heute vollzogen worden, könntest Du mir es denn sagen? Ein wunderschönes Browsergame, auch für Kleinigkeiten unterwegs. Erschaffe deinen eigenen Computer, nutze ihn um anderen das Geld zu rauben, schließe dich einem Clan an oder gründe selbst einen. Bleibe allein oder mit vielen Freunden.

  • public SetPlayerToTeamColor(playerid) // Zeile 4490
    { // <== ICH BIN MAKIERT!! 4491
    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] == 8)
    {
    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);
    }
    }


    }

    Einmal editiert, zuletzt von OptiiC_x3 ()

  • switch(PlayerInfo[playerid][pFraktion])
    {
    case 0:
    {
    }
    }


    usw. anstatt 'ne blöde IF-Abfrage xD