so muss es gehen:
forward payday();
public payday()
{
for(new i=0; i<MAX_PLAYERS;i++)
{
new PlayerScore = GetPlayerScore(i);
if(PlayerScore < 0)
{
GivePlayerMoney(i,5000);
SetPlayerScore(i,GetPlayerScore(playerid)+1);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 0-1");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $5000");
return 1;
}
else if(PlayerScore > 2)
{
GivePlayerMoney(i,1000);
SetPlayerScore(i,GetPlayerScore(playerid)+1);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 2-3");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $10000");
return 1;
}
else if(PlayerScore > 4)
{
SetPlayerScore(i,GetPlayerScore(playerid)+1);
GivePlayerMoney(i,25000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 5-6");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $25000");
return 1;
}
else if(PlayerScore > 7)
{
SetPlayerScore(i,GetPlayerScore(playerid)+1);
GivePlayerMoney(i,50000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 7-9");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $50000");
return 1;
}
else if(PlayerScore > 10)
{
SetPlayerScore(i,GetPlayerScore(playerid)+1);
GivePlayerMoney(i,100000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 10-~");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $100000");
return 1;
}
}
return 1;
}
Verschiedene Payday beiträge!
- zombie.modder
- Geschlossen
- Erledigt
-
-
Jo Flo hast aber vergessen bei allen
SetPlayerScore(i,GetPlayerScore(playerid)+1);
zu ändern,muss so lauten:
SetPlayerScore(i,GetPlayerScore(i)+1); -
nix davon geht!!!
public payday ()
{
new playerid;
new PlayerScore = GetPlayerScore(playerid);
if(PlayerScore < 0)
{
GivePlayerMoney(playerid,5000);
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 0-1");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $5000");
return 1;
}
else if(PlayerScore > 2)
{
GivePlayerMoney(playerid,1000);
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 2-3");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $10000");
return 1;
}
else if(PlayerScore > 4)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GivePlayerMoney(playerid,25000);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 5-6");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $25000");
return 1;
}
else if(PlayerScore > 7)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GivePlayerMoney(playerid,50000);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 7-9");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $50000");
return 1;
}
else if(PlayerScore > 10)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GivePlayerMoney(playerid,100000);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 10-~");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $100000");
return 1;
}
return 1;
}Bitte einfügen wie es richtig ist!
-
public payday()
{
for(new i=0; i<MAX_PLAYERS;i++)
{
new PlayerScore = GetPlayerScore(i);
if(PlayerScore < 0)
{
GivePlayerMoney(i,5000);
SetPlayerScore(i,GetPlayerScore(i)+1);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 0-1");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $5000");
return 1;
}
else if(PlayerScore > 2)
{
GivePlayerMoney(i,1000);
SetPlayerScore(i,GetPlayerScore(i)+1);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 2-3");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $10000");
return 1;
}
else if(PlayerScore > 4)
{
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,25000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 5-6");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $25000");
return 1;
}
else if(PlayerScore > 7)
{
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,50000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 7-9");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $50000");
return 1;
}
else if(PlayerScore > 10)
{
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,100000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 10-~");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $100000");
return 1;
}
}
return 1;
} -
schau dir meinen letzten Beitrag an .....
es war das:
forward payday();
public payday()
{
for(new i=0; i<MAX_PLAYERS;i++)
{
new PlayerScore = GetPlayerScore(i);
if(PlayerScore < 0)
{
GivePlayerMoney(i,5000);
SetPlayerScore(i,GetPlayerScore(i)+1);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 0-1");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $5000");
return 1;
}
else if(PlayerScore > 2)
{
GivePlayerMoney(i,1000);
SetPlayerScore(i,GetPlayerScore(i)+1);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 2-3");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $10000");
return 1;
}
else if(PlayerScore > 4)
{
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,25000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 5-6");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $25000");
return 1;
}
else if(PlayerScore > 7)
{
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,50000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 7-9");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $50000");
return 1;
}
else if(PlayerScore > 10)
{
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,100000);
GameTextForPlayer(i,"Payday",1500,6);
GameTextForPlayer(i,"~w~Zahltag",1500,6);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 10-~");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $100000");
return 1;
}
}
return 1;
} -
forward payday();
public payday ()
{
new PlayerScore = GetPlayerScore(playerid);
if(PlayerScore < 0)
{
GivePlayerMoney(playerid,5000);
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 0-1");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $5000");
return 1;
}
else if(PlayerScore > 2)
{
GivePlayerMoney(playerid,1000);
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 2-3");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $10000");
return 1;
}
else if(PlayerScore > 4)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GivePlayerMoney(playerid,25000);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 5-6");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $25000");
return 1;
}
else if(PlayerScore > 7)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GivePlayerMoney(playerid,50000);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 7-9");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $50000");
return 1;
}
else if(PlayerScore > 10)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
GivePlayerMoney(playerid,100000);
GameTextForPlayer(playerid,"Payday",1500,6);
GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
SendClientMessage(playerid,0xFFFF00FF,"Score: 10-~");
SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $100000");
return 1;
}
return 1;
}müsste doch eigentlich gehen kann gerade schlecht testen
-
joker deins aknn nicht funktionieren
bei deinem wird immer undefined symbol playerid kommen -
immer noch nicht
-
immer noch nicht
was immer noch nicht? geht immer noch nicht? dann wäre es hilfreich die Fehler zu posten
-
joa stimmt habs auch gerade gemerkt aber deins ist richtig..
-
keine errors aber nix im spiel
-
Änder mal das
else if(PlayerScore > 2)
Ich hatte das vorhin ausm Kopf gemacht,heißt ja größer als 2 ob die 2 mitzählt kA
probier halt mal und <5 <8 immer eins mehr vllt gehts dann... -
Danke Danke Danke!!!!
-
jo sry hätte ich auch früher draufkommen können
-
breadfish.de
Hat das Thema geschlossen.