Input file to long after substition STRCAT

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
  • Hallo,
    liebe Breadfish Community
    da ich nicht so erfahren bin weiß ich net wie man ein IsPlayerInRangeofPoint in ein Strcat packt
    bitte helft mir :D


    if(IsPlayerInRangeOfPoint(playerid,2.0,1272.9819,-800.3746,1089.9298) || IsPlayerInRangeOfPoint(playerid,2.0,1958.1266,986.5524,992.4688) || IsPlayerInRangeOfPoint(playerid,2.0,-2164.0723,641.3340,1057.5933) || IsPlayerInRangeOfPoint(playerid,2.0,-2422.5806,342.4432,36.9974) || IsPlayerInRangeOfPoint(playerid,2.0,315.9215,1118.7590,1083.8828) || IsPlayerInRangeOfPoint(playerid,2.0,1123.8663,-1.4310,1000.6797 || IsPlayerInRangeOfPoint(playerid,2.0,503.0312,-75.3989,998.7651 || IsPlayerInRangeOfPoint(playerid,2.0,1220.4254,4.7534,1000.9219 || IsPlayerInRangeOfPoint(playerid,2.0,-222.4017,1410.3318,27.7734 || IsPlayerInRangeOfPoint(playerid,2.0,236.6648,1074.6542,1084.2344 || IsPlayerInRangeOfPoint(playerid,2.0,2805.5818,-1171.5667,1025.5703 || IsPlayerInRangeOfPoint(playerid,2.0,2553.2783,-1290.0443,1060.9844 || IsPlayerInRangeOfPoint(playerid,2.0,1733.8542,-1659.5723,20.2432))

    Mit freundlichen Grüßen
    Exqool

  • Einfach neu formatieren so müsste es funktionieren:


    if(IsPlayerInRangeOfPoint(playerid,2.0,1272.9819,-800.3746,1089.9298) || IsPlayerInRangeOfPoint(playerid,2.0,1958.1266,986.5524,992.4688) || IsPlayerInRangeOfPoint(playerid,2.0,-2164.0723,641.3340,1057.5933) ||
    IsPlayerInRangeOfPoint(playerid,2.0,-2422.5806,342.4432,36.9974) || IsPlayerInRangeOfPoint(playerid,2.0,315.9215,1118.7590,1083.8828) ||
    IsPlayerInRangeOfPoint(playerid,2.0,1123.8663,-1.4310,1000.6797 || IsPlayerInRangeOfPoint(playerid,2.0,503.0312,-75.3989,998.7651 ||
    IsPlayerInRangeOfPoint(playerid,2.0,1220.4254,4.7534,1000.9219 || IsPlayerInRangeOfPoint(playerid,2.0,-222.4017,1410.3318,27.7734 ||
    IsPlayerInRangeOfPoint(playerid,2.0,236.6648,1074.6542,1084.2344 || IsPlayerInRangeOfPoint(playerid,2.0,2805.5818,-1171.5667,1025.5703 ||
    IsPlayerInRangeOfPoint(playerid,2.0,2553.2783,-1290.0443,1060.9844 || IsPlayerInRangeOfPoint(playerid,2.0,1733.8542,-1659.5723,20.2432))

  • Ja, misteriöser Unbekannter hat die ) falsch gesetzt ^^


    So sollte es gehen:


    if(IsPlayerInRangeOfPoint(playerid,2.0,1272.9819,-800.3746,1089.9298) || IsPlayerInRangeOfPoint(playerid,2.0,1958.1266,986.5524,992.4688) || IsPlayerInRangeOfPoint(playerid,2.0,-2164.0723,641.3340,1057.5933) ||
    IsPlayerInRangeOfPoint(playerid,2.0,-2422.5806,342.4432,36.9974) || IsPlayerInRangeOfPoint(playerid,2.0,315.9215,1118.7590,1083.8828) ||
    IsPlayerInRangeOfPoint(playerid,2.0,1123.8663,-1.4310,1000.6797) || IsPlayerInRangeOfPoint(playerid,2.0,503.0312,-75.3989,998.7651) ||
    IsPlayerInRangeOfPoint(playerid,2.0,1220.4254,4.7534,1000.9219) || IsPlayerInRangeOfPoint(playerid,2.0,-222.4017,1410.3318,27.7734) ||
    IsPlayerInRangeOfPoint(playerid,2.0,236.6648,1074.6542,1084.2344) || IsPlayerInRangeOfPoint(playerid,2.0,2805.5818,-1171.5667,1025.5703) ||
    IsPlayerInRangeOfPoint(playerid,2.0,2553.2783,-1290.0443,1060.9844) || IsPlayerInRangeOfPoint(playerid,2.0,1733.8542,-1659.5723,20.2432))


    mfg. :thumbup:

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S