Beiträge von JustinBieber


    Bin mir sicher

    Wieso kann man den CJ Skin noch auswählen?

    for(new i = 3; 299 > i; i++){
    AddPlayerClass(i, 2482.0195,1526.0598,11.5952,316.2115, 0, 0, 0, 0, 0, 0);
    }

    @ JustinBieber: *palmface*
    Was steht denn in den Zeilen im Script? (Nicht die Fehler, sondern der Code..)


    forward AC_OnPlayerConnect(playerid);
    forward AC_OnGameModeInit();
    forward AC_OnPlayerSpawn(playerid);
    forward AC_OnPlayerDeath(playerid,killerid,reason);
    forward AC_OnPlayerText(playerid,text[]);
    forward AC_OnPlayerEnterVehicle(playerid,vehicleid,ispassenger);
    forward AC_OnVehicleMod(playerid,vehicleid,componentid);
    forward AC_OnVehicleRespray(playerid,vehicleid,color1,color2);
    forward AC_OnVehiclePaintjob(playerid,vehicleid,paintjobid);
    forward AC_OnPlayerKeyStateChange(playerid,newkeys,oldkeys);
    forward AC_OnPlayerUpdate(playerid);
    forward AC_OnPlayerDisconnect(playerid,reason);
    forward AC_OnPlayerExitVehicle(playerid,vehicleid);
    forward AC_OnPlayerStateChange(playerid,newstate,oldstate);
    forward AC_GivePlayerMoneyEx(playerid,money);
    forward AC_SetPlayerMoneyEx(playerid,money);
    forward AC_GivePlayerHealthEx(playerid,Float:health);
    forward AC_SetPlayerHealthEx(playerid,Float:health);
    forward AC_GivePlayerArmourEx(playerid,Float:armour);
    forward AC_SetPlayerArmourEx(playerid,Float:armour);
    forward AC_GivePlayerWeaponEx(playerid,Gun,Muni);
    forward AC_SetPlayerPosEx(playerid,Float:x,Float:y,Float:z);
    forward AC_TogglePlayerControllableEx(playerid,toggle);
    forward AC_TogglePlayerSpectatingEx(playerid,toggle);
    forward AC_Fallingchecker();
    forward AC_OnVehicleStreamIn(vehicleid,forplayerid);
    forward AC_CreateVehicle_Ex(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
    forward AC_AddStaticVehicle_Ex(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
    forward AC_AddStaticVehicleEx_Ex(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2,respawn_delay);
    forward AC_CreateObjectEx(modelid,Float:x,Float:y,Float:z,Float:rX,Float:rY,Float:rZ,Float:draw);
    forward AC_CreatePlayerObjectEx(playerid,modelid,Float:x,Float:y,Float:z,Float:rX,Float:rY,Float:rZ,Float:draw);
    forward AC_SetVehicleZAngleEx(vehicleid,Float:zangle);
    forward AC_PutPlayerInVehicleEx(playerid,vehicleid,seatid);
    forward AC_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
    forward AC_OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
    forward AC_SetVehiclePosEx(vehicleid,Float:AC_vx,Float:AC_vy,Float:AC_vz);

    ...


    C:\Users\Can\Desktop\server\pawno\include\zcmd.inc(90) : warning 219: local variable "pos" shadows a variable at a preceding level
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(83) : error 021: symbol already defined: "badword"
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(216) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(217) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(218) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(219) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(220) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(221) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(222) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(223) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(224) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(225) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(226) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(227) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(228) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(229) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(230) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(231) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(232) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(233) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(234) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(235) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(236) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(237) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(238) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(239) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(240) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(241) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(242) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(243) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(244) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(245) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(246) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(247) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(248) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(249) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(250) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(251) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(252) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(253) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(254) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(255) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(256) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(257) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(258) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(259) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(260) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(261) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(262) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(263) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(264) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(265) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\Can\Desktop\server\gamemodes\LucareLLIDM.pwn(267) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Wenn du Integers miteinander teilst musst du, bzw kannst du, nicht mehr runden, die Nachkommastellen werden abgeschnitten.


    Du musst playerid verwenden, das ist die ID des Spielers der schießt.


    Müsste es so gehen?



    public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
    {
    if(hitid != BULLET_HIT_TYPE_PLAYER){
    User[playerid][Shots] ++;
    }
    else if(hitid == BULLET_HIT_TYPE_PLAYER){
    User[playerid][Hits] ++;
    }
    return 1;
    }



    public InfoUpdate()
    {
    new lvlpunkte[34],kills[24],tode[24],hitrate[24];
    for(new i=0; i<MAX_PLAYERS;i++)
    {
    if(!IsPlayerConnected(i)) continue;
    if(User[i][TextDrawAktiv] == 1)
    {
    User[i][Hitrate] = User[i][Hits] / User[i][Shots] * 100;
    format(lvlpunkte,34,"Level Up %d/3",User[i][LevelPunkte]);
    format(kills,24,"Kills: %d",User[i][Kills]);
    format(tode,24,"Tode: %d",User[i][Tode]);
    format(hitrate,24,"Hitrate: %d%",User[i][Hitrate]);
    PlayerTextDrawSetString(i,LevelUpDraw[i],lvlpunkte);
    PlayerTextDrawSetString(i,StatsDraw[1][i],kills);
    PlayerTextDrawSetString(i,StatsDraw[3][i],tode);
    PlayerTextDrawSetString(i,StatsDraw[5][i],hitrate);
    }


    }
    return 1;
    }


    Wie sieht die Rechnung aus mit den Variabeln? also Getroffen/Schüsse *100 aber wie runde ich das z.b noch auf


    Gleiches Problem