Beiträge von Myname1997

    Du musst aber das pcikup so erstellen



    CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld)
    z.B.
    CreatePickup(1239, 1, Float:X, Float:Y, Float:Z, -1)

    ocmd:money(playerid,params[]) // ingame befehl , /money
    {
    new otherid,Money; // definiert Andere id und des Geld
    if(sscanf(params,"ui",otherid,Money)) return SendClientMessage(playerid,ROT,"/givemoney [id] [Money]"); // u = Id , i= Geld
    GivePlayerMoney(otherid,Money); // gibt das Geld
    return 1; //return 1 :D
    }



    Klartext in deinem Code müsstest du einfach:
    ocmd:money(playerid,params[])
    {
    new pID,ageld[64];
    if(isPAdmin(playerid,1338))
    {
    if(sscanf(params,"ui",pID,ageld))return SendClientMessage(playerid,ROT,"Fehler! Benutze: /money [playerid][money]");//das Erste i zu einem u machen ;)
    GivePlayerMoney(pID,ageld);
    }
    return 1;
    }

    Aber ok, dass man das forward oben machen muss, is unnötig ^^ Das kannste irgendwo (AUßERHALB EINES PUBLICS) reinmachen :D

    Ja sry :D
    kann man auch so amchen :P
    Ich mache es meistens am Anfagn für mich übersichtlicher :P




    @Rapute: Hm danke schonmal :) Aber noch 2 errors... Zeile (46161) : error 055: start of function body without function header Zeile (46164) : Unbekannte Funktion


    Poste mal bitte die zeilen xD

    Obens Ins Script :


    forward GangtorTimer(playerid);


    Den Timer setzt du so ein



    if(IsPlayerInRangeOfPoint(playerid,3.0,205.0009,-240.5190,1.5781))
    {
    SendClientMessage(playerid,COLOR_PURPLE, "Du versuchst das Tor Zu knacken, Warte hier!");
    SetTimer("GangtorTimer,30000,0);//30000 = 30Sekunden
    }


    Unten ins Script:

    public GangtorTimer(playerid);
    {
    MoveObject(objectid,x,y,z,Schnelligkeit);
    SendClientMessage(playerid,0xff0008ff,"Sie haben das Gangjail tor geknackt");
    return 1;
    }

    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(50) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(109) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(115) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(119) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(125) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(129) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(133) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(140) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(187) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(214) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\KIHC.inc(687) : warning 201: redefinition of constant/macro (symbol "OnPlayerCommandText")
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(666) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(745) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(863) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(1070) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(1085) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2020) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2633) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2740) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2815) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2820) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2823) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2834) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2837) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2857) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2888) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(3094) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(3197) : error 021: symbol already defined: "strtok"
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(3212) : error 047: array sizes do not match, or destination array is too small
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.