Beiträge von Miguel_Montana

    Was kann ich gegen diese Errors tun ?!
    C:\Users\Daniel\Desktop\Server\pawno\include\dutils.inc(34) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\pawno\include\dutils.inc(149) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\pawno\include\dutils.inc(166) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\pawno\include\dutils.inc(268) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\pawno\include\dutils.inc(329) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\pawno\include\dutils.inc(374) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(3870) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(3973) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(4071) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(4700) : error 035: argument type mismatch (argument 1)
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(4876) : error 035: argument type mismatch (argument 1)
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(4907) : error 035: argument type mismatch (argument 1)
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(4925) : error 035: argument type mismatch (argument 1)
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(4963) : error 035: argument type mismatch (argument 1)
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(4996) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5008) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5101) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5116) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5163) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5178) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5233) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5303) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5353) : error 055: start of function body without function header
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5355) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5356) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5363) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5366) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5369) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5372) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5377) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5380) : error 054: unmatched closing brace ("}")
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5381) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5382) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5383) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5387) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5389) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5393) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5398) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5399) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5405) : error 021: symbol already defined: "GetPlayerName"
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5408) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5411) : warning 219: local variable "zone" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVD.pwn(5411) : error 010: invalid function or declaration


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.

    Hey könnt ihr mir vielleicht diese Errors ganz beheben ? Also die ganze Zeile verändern ?


    Errors:
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : error 037: invalid string (possibly non-terminated string)
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : warning 215: expression has no effect
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : error 001: expected token: ";", but found ")"
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    Zeile:
    WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_KNALLROT, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID, 1");

    new PlayerText3D:WantedLabel[MAX_PLAYERS];


    firestormZ Sag bloß, es gibt aber auch Create3DTextLabel welches man Attachen kann.
    Ich wollte nur wissen ob CreatePlayer3DTextLabel es schon inbegriffen hat.


    Also jetzt kommen die Errors


    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6506) : warning 219: local variable "WantedLabel" shadows a variable at a preceding level
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6507) : error 017: undefined symbol "playername"
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6507) : error 017: undefined symbol "playername"
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6507) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6507) : fatal error 107: too many error messages on one line

    Kuck dir den Befehl noch mal an ok.... weil die ganze Reihenfolge simmt net :thumbdown:


    Ich komm nicht weiter :/


    Kann mir ein anderer helfen ?


    Hier alles :


    if(FirstSpawnAfterLogin[playerid] == 1){
    if(PlayerInfo[playerid][pWantedLevel] > 0){
    new string[128];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    for(new i = 0; i < MAX_PLAYERS; i++){
    if(IsPlayerConnected(i) && IsACop(i) && OnDuty[i] == 1){
    format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
    WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_KNALLROT, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID, 1");
    }}}}

    Das sind die Errors
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : error 037: invalid string (possibly non-terminated string)
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : warning 215: expression has no effect
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : error 001: expected token: ";", but found ")"
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\Server\gamemodes\GVR.pwn(6511) : fatal error 107: too many error messages on one line


    Das ist die Zeile
    WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_KNALLROT, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID, 1");