Beiträge von HunterBoY998

    J:\Chrome Downloads\German City Reallife\gamemodes\gcr.pwn(1492) : error 076: syntax error in the expression, or invalid function call
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    Zeile:
    SetTimer("blowjoblaune",120000,true);


    Oben im Script:
    forward blowjoblaune(playerid);


    Public veröffentliche ich nicht

    public OnPlayerSpawn(playerid)
    {
    if(GetPVarInt(playerid,"Tutorial") == 0)
    {
    SetPlayerPos(playerid,-1437.5637,1490.5920,1.8672);
    SetPlayerFacingAngle(playerid,267.9360);
    TextDrawHideForPlayer(playerid,LoadScreen);
    GameTextForPlayer(playerid,"~r~Begib ~w~dich zum Checkpoint",5000,3);
    TutCheck[playerid]=1;
    SetPlayerCheckpoint(playerid,-1376.6665,1492.8998,11.2031,3.0);
    SetPlayerColor(playerid,weiss);
    new bankstring[256];
    format(bankstring,sizeof(bankstring),"~g~Bank: ~w~%i$",GetPVarInt(playerid,"Bank"));
    TextDrawSetString(StatistikBank[playerid], bankstring[playerid]);

    new string[64],laune[120];
    switch(GetPVarInt(playerid,"Laune"))
    {
    case 0:{laune="Depressive";}
    case 1:{laune="So lala";}
    case 2:{laune="Gut";}
    case 3:{laune="Sehr Gut";}
    }
    format(string,sizeof(string),"~b~Laune: ~w~%s",laune);
    TextDrawSetString(StatistikLaune[playerid],string);
    TextDrawShowForPlayer(playerid,Uhrzeit);
    TextDrawShowForPlayer(playerid,Datum);
    TextDrawShowForPlayer(playerid,TextNsR);
    TextDrawShowForPlayer(playerid,Version);
    TextDrawShowForPlayer(playerid,StatistikBank[playerid]);
    TextDrawShowForPlayer(playerid,StatistikLaune[playerid]);
    }
    else if(GetPVarInt(playerid,"Tutorial") == 1)
    {
    SetPlayerColor(playerid,weiss);
    SetPlayerPos(playerid,436.0396,-1748.9204,9.1560);
    SetPlayerFacingAngle(playerid,220.7169);
    TextDrawHideForPlayer(playerid,LoadScreen);
    new bankstring[256];
    format(bankstring,sizeof(bankstring),"~g~Bank: ~w~%i$",GetPVarInt(playerid,"Bank"));
    TextDrawSetString(StatistikBank[playerid], bankstring[playerid]);

    new string[64],laune[120];
    switch(GetPVarInt(playerid,"Laune"))
    {
    case 0:{laune="Depressive";}
    case 1:{laune="So lala";}
    case 2:{laune="Gut";}
    case 3:{laune="Sehr Gut";}
    }
    format(string,sizeof(string),"~b~Laune: ~w~%s",laune);
    TextDrawSetString(StatistikLaune[playerid],string);
    TextDrawShowForPlayer(playerid,Uhrzeit);
    TextDrawShowForPlayer(playerid,Datum);
    TextDrawShowForPlayer(playerid,TextNsR);
    TextDrawShowForPlayer(playerid,Version);
    TextDrawShowForPlayer(playerid,StatistikBank[playerid]);
    TextDrawShowForPlayer(playerid,StatistikLaune[playerid]);
    }
    return 1;
    }

    Hallo,
    der erste Spieler der connected kann spawnen aber der 2+ nicht.
    Code von OnPlayerSpawn:


    if(GetPVarInt(playerid,"Tutorial") == 0)
    {
    SetPlayerPos(playerid,-1437.5637,1490.5920,1.8672);
    SetPlayerFacingAngle(playerid,267.9360);
    TextDrawHideForPlayer(playerid,LoadScreen);
    GameTextForPlayer(playerid,"~r~Begib ~w~dich zum Checkpoint",5000,3);
    TutCheck[playerid]=1;
    SetPlayerCheckpoint(playerid,-1376.6665,1492.8998,11.2031,3.0);
    SetPlayerColor(playerid,weiss);
    new bankstring[256];
    format(bankstring,sizeof(bankstring),"~g~Bank: ~w~%i$",GetPVarInt(playerid,"Bank"));
    TextDrawSetString(StatistikBank[playerid], bankstring[playerid]);

    new string[64],laune[120];
    switch(GetPVarInt(playerid,"Laune"))
    {
    case 0:{laune="Depressive";}
    case 1:{laune="So lala";}
    case 2:{laune="Gut";}
    case 3:{laune="Sehr Gut";}
    }
    format(string,sizeof(string),"~b~Laune: ~w~%s",laune);
    TextDrawSetString(StatistikLaune[playerid],string);
    TextDrawShowForPlayer(playerid,Uhrzeit);
    TextDrawShowForPlayer(playerid,Datum);
    TextDrawShowForPlayer(playerid,TextNsR);
    TextDrawShowForPlayer(playerid,Version);
    TextDrawShowForPlayer(playerid,StatistikBank[playerid]);
    TextDrawShowForPlayer(playerid,StatistikLaune[playerid]);
    }
    else if(GetPVarInt(playerid,"Tutorial") == 1)
    {
    SetPlayerColor(playerid,weiss);
    SetPlayerPos(playerid,436.0396,-1748.9204,9.1560);
    SetPlayerFacingAngle(playerid,220.7169);
    TextDrawHideForPlayer(playerid,LoadScreen);
    new bankstring[256];
    format(bankstring,sizeof(bankstring),"~g~Bank: ~w~%i$",GetPVarInt(playerid,"Bank"));
    TextDrawSetString(StatistikBank[playerid], bankstring[playerid]);

    new string[64],laune[120];
    switch(GetPVarInt(playerid,"Laune"))
    {
    case 0:{laune="Depressive";}
    case 1:{laune="So lala";}
    case 2:{laune="Gut";}
    case 3:{laune="Sehr Gut";}
    }
    format(string,sizeof(string),"~b~Laune: ~w~%s",laune);
    TextDrawSetString(StatistikLaune[playerid],string);
    TextDrawShowForPlayer(playerid,Uhrzeit);
    TextDrawShowForPlayer(playerid,Datum);
    TextDrawShowForPlayer(playerid,TextNsR);
    TextDrawShowForPlayer(playerid,Version);
    TextDrawShowForPlayer(playerid,StatistikBank[playerid]);
    TextDrawShowForPlayer(playerid,StatistikLaune[playerid]);
    }


    MfG

    Heyho,
    also wenn man die ganze Zeit Enter drückt dann wird der Dialog angezeigt nur einmal drücken nicht.


    Code:
    if(newkeys == KEY_SECONDARY_ATTACK)
    {
    if(IsPlayerInRangeOfPoint(playerid,1.0,315.8935,-1769.8759,4.6351))
    {
    if(GetPVarInt(playerid,"Tutorial") == 0)
    {
    new string[500];
    format(string,sizeof(string),"TEXT 1",string);
    format(string,sizeof(string),"TEXT 2",string);
    ShowPlayerDialog(playerid,DIALOG_TUT3,DIALOG_STYLE_MSGBOX," ",string,"Okay","");
    SetPlayerCheckpoint(playerid,322.3679,-1765.4747,4.0947,4.0);
    TutCheck[playerid] = 4;
    }
    else if(GetPVarInt(playerid,"Tutorial") == 1)
    {
    }
    }
    }