Beiträge von Vince

    Achsoo ok.


    Hab einen geholt. Aber es wir erst angezeigt, wenn man /sethp [ID] 0 macht und er dann respawnt.


    Ich will aber, dass es immer angezeigt wird..

    Naja, ich hätte einheitliche Farben genommen. So siehts aus wie ein gewöhnliches Pier.


    Blau z.b.


    Und ein Segelboot für die Polizei?^^


    Finde ich jetz persöhnlich nix besonderes..


    4/10

    Gar keiner.


    Keine Errors, keine Warnings, doch es wird nix über dem Admin angezeigt-.-


    PS: Hab das bei OnPlayerConnect. Das sollte doch gehen?


    Mfg Vince

    Hi,


    Mal ne kleine Frage:


    Was is daran falsch?


    if(isPlayerAnAdmin(playerid,3))
    {
    label[playerid] = Create3DTextLabel("ADMIN",0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
    return 1;
    }

    Ja so:


    if(strcmp(tmp,"/explode",true)==0)
    tmp = strtok(cmdtext, idx);
    giveplayerid = strval(tmp);
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    {
    if(IsPlayerConnected(giveplayerid))
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(giveplayerid,x,y,z);
    CreateExplosion(x,y,z,7,16);
    return 1;
    }
    }


    Gibt 3 Errors, wenn ich das giveplayer noch lasse..

    C:\Users\Vince\Desktop\Local Server\pawno\include\dutils.inc(298) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dutils.inc(462) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dini.inc(46) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dini.inc(54) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(145) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(146) : warning 217: loose indentation
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(147) : error 035: argument type mismatch (argument 2)
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(147) : error 035: argument type mismatch (argument 2)
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(148) : warning 217: loose indentation
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(740) : warning 203: symbol is never used: "giveplayer"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.



    Wenn ich das giveplayer weg nehme, krieg ich wieder 5 Errors..

    Upsi :D


    Hab das von den anderen kopiert und gar net drauf geachtet.


    Na dann noch 4 Errors :D


    C:\Users\Vince\Desktop\Local Server\pawno\include\dutils.inc(298) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dutils.inc(462) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dini.inc(46) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dini.inc(54) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(13) : error 021: symbol already defined: "label"
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(145) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(146) : warning 217: loose indentation
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(147) : error 035: argument type mismatch (argument 2)
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(147) : error 035: argument type mismatch (argument 2)
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(148) : warning 217: loose indentation
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(740) : warning 203: symbol is never used: "giveplayer"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.

    Hab jetz 5 Errors.


    Also ich hab oben im Script:


    new Text3D:label[MAX_PLAYERS];
    new idx;
    new tmp[64];
    new giveplayerid;
    new gibeplayer;


    Und bei OnPlayerCommandText:


    if(strcmp(cmdtext,"/explode",true)==0)
    tmp = strtok(cmdtext, idx);
    giveplayerid = strval(tmp);
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    {
    if(IsPlayerConnected(giveplayerid))
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(giveplayerid,x,y,z);
    CreateExplosion(x,y,z,7,16);
    return 1;
    }
    }



    Und hier die Errors:


    C:\Users\Vince\Desktop\Local Server\pawno\include\dutils.inc(298) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dutils.inc(462) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dini.inc(46) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\pawno\include\dini.inc(54) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(138) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(139) : warning 217: loose indentation
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(140) : error 017: undefined symbol "giveplayer"
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(140) : error 017: undefined symbol "giveplayer"
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(140) : error 029: invalid expression, assumed zero
    C:\Users\Vince\Desktop\Local Server\filterscripts\Selfmade.pwn(140) : fatal error 107: too many error messages on one line


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



    5 Errors.