Guten Abend.
Ich habe eine Frage wie stelle ich die Paychecks ein wenn ich Altis V5.0 habe und wo muss ich das den Eintragen.
kann weil ich habe kein Tut.
Guten Abend.
Ich habe eine Frage wie stelle ich die Paychecks ein wenn ich Altis V5.0 habe und wo muss ich das den Eintragen.
kann weil ich habe kein Tut.
fn_initPayChecks.sqf
#include "..\..\script_macros.hpp"
/*
File: fn_initPayChecks.sqf
Author: ScarsoLP
Description:
Changes The Player(s) paycheck depending on what rank/level they are in the Police/NHS/Donator.
Also changes the palyer(s) paycheck depending on what licenses they have.
*/
/* Changes The Paycheck Depending On Levels */
switch (playerSide) do
{
case west:
{
switch(FETCH_CONST(life_coplevel)) do
{
case 0: {life_paycheck = life_paycheck + 0;};
case 1: {life_paycheck = life_paycheck + 2000;};
case 2: {life_paycheck = life_paycheck + 2500;};
case 3: {life_paycheck = life_paycheck + 3000;};
case 4: {life_paycheck = life_paycheck + 3500;};
case 5: {life_paycheck = life_paycheck + 4000;};
case 6: {life_paycheck = life_paycheck + 4500;};
case 7: {life_paycheck = life_paycheck + 5000;};
};
switch(FETCH_CONST(life_donorlevel)) do
{
case 0: {life_paycheck = life_paycheck + 0;};
case 1: {life_paycheck = life_paycheck + 2000;};
case 2: {life_paycheck = life_paycheck + 2500;};
case 3: {life_paycheck = life_paycheck + 3000;};
case 4: {life_paycheck = life_paycheck + 3500;};
case 5: {life_paycheck = life_paycheck + 4000;};
};
};
case independent:
{
switch(FETCH_CONST(life_mediclevel)) do
{
case 0: {life_paycheck = life_paycheck + 0;};
case 1: {life_paycheck = life_paycheck + 2000;};
case 2: {life_paycheck = life_paycheck + 2500;};
case 3: {life_paycheck = life_paycheck + 3000;};
case 4: {life_paycheck = life_paycheck + 3500;};
case 5: {life_paycheck = life_paycheck + 4000;};
};
switch(FETCH_CONST(life_donorlevel)) do
{
case 0: {life_paycheck = life_paycheck + 0;};
case 1: {life_paycheck = life_paycheck + 2000;};
case 2: {life_paycheck = life_paycheck + 2500;};
case 3: {life_paycheck = life_paycheck + 3000;};
case 4: {life_paycheck = life_paycheck + 3500;};
case 5: {life_paycheck = life_paycheck + 4000;};
};
};
case civilian:
{
switch(FETCH_CONST(life_donorlevel)) do
{
case 0: {life_paycheck = life_paycheck + 0;};
case 1: {life_paycheck = life_paycheck + 2000;};
case 2: {life_paycheck = life_paycheck + 2500;};
case 3: {life_paycheck = life_paycheck + 3000;};
case 4: {life_paycheck = life_paycheck + 3500;};
case 5: {life_paycheck = life_paycheck + 4000;};
};
};
};
Alles anzeigen
Functions.hpp
fn_initMedic.sqf, fn_initCop.sqf, fn_initCiv.sqf
Ini Paychek in Funkton?
Altis_Life.Altis/config/Config_Master.hpp
Zeile 111 - 112 - 113
fn_initPayChecks.sqf
Code Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_initPayChecks.sqf Author: ScarsoLP Description: Changes The Player(s) paycheck depending on what rank/level they are in the Police/NHS/Donator. Also changes the palyer(s) paycheck depending on what licenses they have. */ /* Changes The Paycheck Depending On Levels */ switch (playerSide) do { case west: { switch(FETCH_CONST(life_coplevel)) do { case 0: {life_paycheck = life_paycheck + 0;}; case 1: {life_paycheck = life_paycheck + 2000;}; case 2: {life_paycheck = life_paycheck + 2500;}; case 3: {life_paycheck = life_paycheck + 3000;}; case 4: {life_paycheck = life_paycheck + 3500;}; case 5: {life_paycheck = life_paycheck + 4000;}; case 6: {life_paycheck = life_paycheck + 4500;}; case 7: {life_paycheck = life_paycheck + 5000;}; }; switch(FETCH_CONST(life_donorlevel)) do { case 0: {life_paycheck = life_paycheck + 0;}; case 1: {life_paycheck = life_paycheck + 2000;}; case 2: {life_paycheck = life_paycheck + 2500;}; case 3: {life_paycheck = life_paycheck + 3000;}; case 4: {life_paycheck = life_paycheck + 3500;}; case 5: {life_paycheck = life_paycheck + 4000;}; }; }; case independent: { switch(FETCH_CONST(life_mediclevel)) do { case 0: {life_paycheck = life_paycheck + 0;}; case 1: {life_paycheck = life_paycheck + 2000;}; case 2: {life_paycheck = life_paycheck + 2500;}; case 3: {life_paycheck = life_paycheck + 3000;}; case 4: {life_paycheck = life_paycheck + 3500;}; case 5: {life_paycheck = life_paycheck + 4000;}; }; switch(FETCH_CONST(life_donorlevel)) do { case 0: {life_paycheck = life_paycheck + 0;}; case 1: {life_paycheck = life_paycheck + 2000;}; case 2: {life_paycheck = life_paycheck + 2500;}; case 3: {life_paycheck = life_paycheck + 3000;}; case 4: {life_paycheck = life_paycheck + 3500;}; case 5: {life_paycheck = life_paycheck + 4000;}; }; }; case civilian: { switch(FETCH_CONST(life_donorlevel)) do { case 0: {life_paycheck = life_paycheck + 0;}; case 1: {life_paycheck = life_paycheck + 2000;}; case 2: {life_paycheck = life_paycheck + 2500;}; case 3: {life_paycheck = life_paycheck + 3000;}; case 4: {life_paycheck = life_paycheck + 3500;}; case 5: {life_paycheck = life_paycheck + 4000;}; }; }; };
Functions.hpp
fn_initMedic.sqf, fn_initCop.sqf, fn_initCiv.sqf
oder die Paycheck Geschichten direkt in die init, macht mehr sinn
Ini Paychek in Funkton?
Bitte befass dich mit den Grundlagen, nicht böse gemeint aber anders bringt das keinem was...
19:58:08 Error Allgemeiner Fehler in Ausdruck
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error call: Typ Zahl, erwartet code
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error Allgemeiner Fehler in Ausdruck
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error call: Typ Zahl, erwartet code
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error Allgemeiner Fehler in Ausdruck
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error call: Typ Zahl, erwartet code
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error Allgemeiner Fehler in Ausdruck
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error call: Typ Zahl, erwartet code
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error Allgemeiner Fehler in Ausdruck
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error call: Typ Zahl, erwartet code
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error Allgemeiner Fehler in Ausdruck
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error call: Typ Zahl, erwartet code
19:58:08 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
19:58:08 Error position: <call life_paycheck);
systemChat format [>
19:58:08 Error Allgemeiner Fehler in Ausdruck
Alles anzeigen
Auf der Tanoa v5.0
gemacht wie oben beschschrieben
Mach nochmal alles rückgängig und füge das in der core\init.sqf ein.
#Edit Suche in der init.sqf nach switch (playerSide) do { und ersetze den Teil
//Set bank amount for new players
switch (playerSide) do {
case west: {
if (FETCH_CONST(life_coplevel) == 1) then { life_paycheck = 3000 };
if (FETCH_CONST(life_coplevel) == 2) then { life_paycheck = 5000 };
if (FETCH_CONST(life_coplevel) == 3) then { life_paycheck = 7500 };
if (FETCH_CONST(life_coplevel) == 4) then { life_paycheck = 8000 };
if (FETCH_CONST(life_coplevel) == 5) then { life_paycheck = 10000 };
if (FETCH_CONST(life_coplevel) == 6) then { life_paycheck = 12000 };
if (FETCH_CONST(life_coplevel) == 7) then { life_paycheck = 15000 };
if (FETCH_CONST(life_coplevel) == 8 ) then { life_paycheck = 20000 };
if (FETCH_CONST(life_coplevel) >= 9) then { life_paycheck = 25000 };
if (FETCH_CONST(life_coplevel) >= 11) then { life_paycheck = 30000 };
};
case civilian: {
life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_civ");
};
case independent: {
if (FETCH_CONST(life_medicLevel) == 1) then { life_paycheck = 3500 };
if (FETCH_CONST(life_medicLevel) == 2) then { life_paycheck = 8000 };
if (FETCH_CONST(life_medicLevel) == 3) then { life_paycheck = 12000 };
if (FETCH_CONST(life_medicLevel) == 4) then { life_paycheck = 15000 };
if (FETCH_CONST(life_medicLevel) == 5) then { life_paycheck = 20000 };
if (FETCH_CONST(life_medicLevel) == 6) then { life_paycheck = 25000 };
if (FETCH_CONST(life_medicLevel) == 7) then { life_paycheck = 30000 };
};
};
20:29:50 Error position: <call life_paycheck);
systemChat format [>
20:29:50 Error Allgemeiner Fehler in Ausdruck
20:29:50 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
20:29:50 Error position: <call life_paycheck);
systemChat format [>
20:29:50 Error call: Typ Zahl, erwartet code
20:29:50 Error in expression <} else {
life_atmbank = life_atmbank + (call life_paycheck);
systemChat format [>
20:29:50 Error position: <call life_paycheck);
Alles anzeigen
Auch wie du es mir beschriebem hattest
Schick uns mal die core\init.sqf Datei
Hier ist die core/init.sqf
Schick doch mal bitte die komplette .rpt Log hier rein weiß leider nicht warum der Fehler angezeigt wird
Server und Client
shoXy // danke denoch für deinen Tipp
habe den fehler gefunden es hatte sich ein Error versteckt gehabt
shoXy // danke denoch für deinen Tipp
habe den fehler gefunden es hatte sich ein Error versteckt gehabt
Lösung auch Posten ?
wenn andere Statusbar verwendet sollte man auch den rest entfernen.
in der core/init.sqf
[ ]call life_hudupdate entfernen