Ja der Server stürzt komplet ab bei diesem Stock
Code
stock Payday(playerid)
{
new STAATSGEHALTSTRING[1024],STEUERNSTRING[1024],JOBGEHALTSTRING[1024],CASHFLOW[1024];
new STAATSGEHALT = random(150);
new STEUERN = random(30);
new JOBGEHALT = random(50);
if(GetPVarInt(playerid,"Member") == 1 || GetPVarInt(playerid,"Member") == 2 || GetPVarInt(playerid,"Member") == 5) {MAXKAPITAL[playerid] += STAATSGEHALT;}
if(GetPVarInt(playerid,"Member") != 1 || GetPVarInt(playerid,"Member") != 2 || GetPVarInt(playerid,"Member") != 5) {MAXKAPITAL[playerid] += 0;}
if(GetPVarInt(playerid,"Job") > 0 ) {MAXKAPITAL[playerid] += JOBGEHALT;}
if(GetPVarInt(playerid,"Job") == 0 ) {MAXKAPITAL[playerid] += HARTZIV;}
GameTextForPlayer(playerid,"~w~Payday",Sek*1,1);
format(STAATSGEHALTSTRING,sizeof(STAATSGEHALTSTRING),"Staatsgehalt: %d",STAATSGEHALT);
format(STEUERNSTRING,sizeof(STEUERNSTRING),"Steuern: %d",STEUERN);
format(JOBGEHALTSTRING,sizeof(JOBGEHALTSTRING),"Berufsgehalt: %d",JOBGEHALT);
format(CASHFLOW,sizeof(CASHFLOW),"CASHFLOW: %d",MAXKAPITAL[playerid]);
SendClientMessage(playerid,0x9D9800FF,"**_________________________________________**");
SendClientMessage(playerid,0xFFFFFFFF,STAATSGEHALTSTRING);
SendClientMessage(playerid,0xFFFFFFFF,STEUERNSTRING);
SendClientMessage(playerid,0xFFFFFFFF,JOBGEHALTSTRING);
SendClientMessage(playerid,0xFFFFFFFF,CASHFLOW);
SendClientMessage(playerid,0x9D9800FF,"**_________________________________________**");
SetPlayerMoney(playerid,GetPlayerMoney(playerid)+MAXKAPITAL[playerid]);
MAXKAPITAL[playerid] = 0;
return 1;
}
Alles anzeigen