Guten Abend,
Ich habe nun ein PayDay System, und ich wollte, wenn man z.B. beim Job Farmer 5 Checkpoints abfährt, dass man dann auch das Geld von den 5 Checkpoints bekommt. Aber man bekommt das Geld, was man eigentlich für den 15 Checkpoints bekommen soll.
public PayDay(playerid)
{
SetPVarInt(playerid,"PayDay",GetPVarInt(playerid,"PayDay")+1);
if(GetPVarInt(playerid,"PayDay") == 60)
{
SendClientMessage(playerid,GRÜN,"|____________________ Zahltag ____________________|");
SendClientMessage(playerid,GRAU," Steuern: {DF0101}-$120");
if(farm1[playerid] == 1)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 150€");
}
if(farm1[playerid] == 2)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 300€");
}
if(farm1[playerid] == 3)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 450€");
}
if(farm1[playerid] == 4)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 600€");
}
if(farm1[playerid] == 5)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 750€");
}
if(farm1[playerid] == 6)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 900€");
}
if(farm1[playerid] == 7)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 1050€");
}
if(farm1[playerid] == 8)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 1200€");
}
if(farm1[playerid] == 9)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 1350€");
}
if(farm1[playerid] == 10)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 1500€");
}
if(farm1[playerid] == 11)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 1650€");
}
if(farm1[playerid] == 12)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 1800€");
}
if(farm1[playerid] == 13)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 1950€");
}
if(farm1[playerid] == 14)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 2100€");
}
if(farm1[playerid] == 15)
{
SendClientMessage(playerid,GRAU," Lohn vom Nebenjob: 2250€");
}
SendClientMessage(playerid,GRAU," Lohn von der Fraktion: ");
GivePlayerMoney(playerid,-120);
GameTextForPlayer(playerid,"~g~PayDay",1000,4);
SetPVarInt(playerid,"PayDay",0);
farm1[playerid] = 0;
return 1;
}
return 1;
}
Grüße,
TheBester