Spieler pos nehmen mit timer ...

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
  • Tag,


    Ich habe etwas geschrieben das einen Timer aktiviert und dieser soll dann ein Object hochgehen lassen.
    Als erstes ist das Object noch nicht zu sehen und nach ca. 1std soll es dann richtig positioniert zusehen sein.


    also erst lasse ich die XYZ Position abfragen dann muss ich die irgentwie später wieder verwenden wie mach ich das?
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetTimer("weedtimer", 3600000, false);
    weed = CreateObject(222222, x, y, z-1.340, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pSamen] -= 2;
    ClearAnimations(playerid);
    OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
    public weedtimer()
    {
    SetTimer("weedtimer2", 3600000, false);
    weed = CreateObject(22222, x, y, z-2.040, 0.0, 0.0, 0.0);
    }


    MFG

  • Du haust dir oben z.B.:
    enum Floatss
    {
    Float:x,
    Float:y,
    Float:z
    };
    new Floats[MAX_PLAYERS][Floatss];


    Und dann:
    GetPlayerPos(playerid, x, y, z);
    Floats[playerid][x] = x;
    Floats[playerid][y] = y;
    Floats[playerid][z] = z;
    Und die rufst du dann beim Timer auf.


    Weiß nicht ob das geht, aber thereotisch schon^^

  • Das wird so nur errors hervorrufen, weil die Variablen identisch sind.


    im Enum könntest du sie z.B.: X,Y und Z statt x,y,z nennen ;)

    "Bevor ich mir Informationen aus der "Bild" hole,
    werde ich anfangen, Wahlergebnisse danach vorauszusagen,
    neben welchen Busch unsere Katze gepinkelt hat."

    Margarete Stokowski

  • Ich bekomme trotz großgeschriebenen "X,Y,Z" 19 errors


    public weedtimer(playerid)
    {
    Floats[playerid][X] = X;
    Floats[playerid][Y] = Y;
    Floats[playerid][Z] = Z;
    SetTimer("weedtimer2", 3600000, false);
    DestroyObject(weed);
    weed = CreateObject(222222, X, Y, Z-2.040, 0.0, 0.0, 0.0);
    }


    GetPlayerPos(playerid, X, Y, Z);
    Floats[playerid][X] = X;
    Floats[playerid][Y] = Y;
    Floats[playerid][Z] = Z;
    SetTimer("weedtimer", 3600000, false);
    weed = CreateObject(3409, X, Y, Z-1.340, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pSamen] -= 2;
    ClearAnimations(playerid);
    OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);


    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(3582) : warning 202: number of arguments does not match definition
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9056) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9057) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9057) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9057) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9057) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055 -- 9063) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055 -- 9063) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9055 -- 9063) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9064) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9065) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9065) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9065) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9065) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9063) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9063) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(9063) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10653) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10653) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10653) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10654) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10655) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10655) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10655) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10655) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10656) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10656) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10656) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10653) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10653) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(10653) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11137) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11138) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11138) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11138) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136 -- 11148) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136 -- 11148) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11136 -- 11148) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11149) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11150) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11150) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11150) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11148) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11148) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(11148) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17522) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17522) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17522) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17523) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17525) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17525) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17525) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17526) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17526) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17526) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17526) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17538) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17538) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17538) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17538) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17522) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17522) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(17522) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18615) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18615) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18615) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18616) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18617) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18617) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18617) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18617) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18615) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18615) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(18615) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26287) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26287) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26287) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26288) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26289) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26289) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26289) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26287) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26287) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(26287) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33475) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33475) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33475) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33476) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33477) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33477) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33477) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33475) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33475) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(33475) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34180) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34180) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34180) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34181) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34182) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34182) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34182) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34180) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34180) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34180) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34215) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34215) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34215) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34216) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34217) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34217) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34217) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34215) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34215) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34215) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34249) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34249) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34249) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34250) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34251) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34251) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34251) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34249) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34249) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34249) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34290) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34290) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34290) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34291) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34292) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34292) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34292) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34290) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34290) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34290) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34334) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34334) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34334) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34335) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34336) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34336) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34336) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34334) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34334) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(34334) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37845) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37845) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37845) : warning 219: local variable "Z" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37846) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37847) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37847) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37847) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37845) : warning 203: symbol is never used: "Z"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37845) : warning 203: symbol is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(37845) : warning 203: symbol is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41950) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41951) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41952) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41953) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41955) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41955) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41955) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41955) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41969) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41970) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41971) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41972) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41974) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41974) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41974) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41974) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41988) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41989) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41990) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41991) : error 035: argument type mismatch (argument 2)
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41993) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41993) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41993) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(41993) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(45506) : warning 219: local variable "X" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(45507) : warning 219: local variable "Y" shadows a variable at a preceding level
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(45515) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(45515) : warning 213: tag mismatch
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(45507) : warning 204: symbol is assigned a value that is never used: "Y"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(45506) : warning 204: symbol is assigned a value that is never used: "X"
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(45750) : error 025: function heading differs from prototype
    C:\Users\Test\Desktop\SAMP\gamemodes\GDR.pwn(45752) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    19 Errors.

  • ich hab den enum jetzt so groß gelassen (sprich X,Y,Z)


    und den rest
    GetPlayerPos(playerid, x,y,z);
    Floats[playerid][X] = x;
    Floats[playerid][Y] = y;
    Floats[playerid][Z] = z;
    SetTimer("weedtimer", 3600000, false);
    weed = CreateObject(3409, x,y,z-1.340, 0.0, 0.0, 0.0);
    ist es vlt so richtig? xd

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • bekomme aber nun 26 errors xd

  • if(dialogid == DIALOG_GROW)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(PlayerInfo[playerid][pSamen] >= 2)
    {
    GetPlayerPos(playerid, x,y,z);
    Floats[playerid][X] = x;
    Floats[playerid][Y] = y;
    Floats[playerid][Z] = z;
    SetTimer("weedtimer", 3600000, false);
    weed = CreateObject(3409, x,y,z-1.340, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pSamen] -= 2;
    ClearAnimations(playerid);
    OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
    //TogglePlayerControllable(playerid,0);
    SendClientMessage(playerid,COLOR_WHITE,"Du hast Kokain angepflanzt");
    } else {
    SendClientMessage(playerid,COLOR_WHITE,"Du hast nicht genug Samen");
    }
    }
    public weedtimer(playerid)
    {
    Floats[playerid][X] = x;
    Floats[playerid][Y] = y;
    Floats[playerid][Z] = z;
    SetTimer("weedtimer2", 3600000, false);
    DestroyObject(weed);
    weed = CreateObject(3409, x,y,z-2.040, 0.0, 0.0, 0.0);
    /*weed2 = CreateObject(3409, x, y, z-2.040, 0.0, 0.0, 0.0);
    weed3 = CreateObject(3409, x, y, z-2.040, 0.0, 0.0, 0.0);*/
    }

  • Vincent du solltest schon erkennen das das kein Klammerfehler ist :D


    Er hat nur die Namen der variablen öfters genommen

    "Bevor ich mir Informationen aus der "Bild" hole,
    werde ich anfangen, Wahlergebnisse danach vorauszusagen,
    neben welchen Busch unsere Katze gepinkelt hat."

    Margarete Stokowski