Hallo ich habe 6 error was mache ich falsch bin noch ein anfänger Alles Errors bei ab case 0 bis case 5
public minute()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))continue;
if(GetPVarInt(i,"loggedin")==0)continue;
//Spieler ist eingeloggt & online
SetPVarInt(i,"Paytime",GetPVarInt(i,"Paytime")+1);
if(GetPVarInt(i,"Paytime")==60)
{
new paydaygeld;
new score;
switch(GetPVarInt(i,"Fraktionsrang"))
{
case 0:(paydaygeld = "750"); //zivi
case 1:(paydaygeld = "1500");// pd
case 2:(paydaygeld = "1000");// gang 1
case 3:(paydaygeld = "2000");// medic
case 4:(paydaygeld = "1000");// gang 2
case 5:(paydaygeld = "1000");// gang 3
}
//was alle 60 minuten ausgeführt werden soll
SetPVarInt(i,"Paytime",0);
SendClientMessage(i,BLAU,"Payday. Du erhältst 300$.");
GivePlayerMoney(i,paydaygeld);
score = GetPlayerScore(i);
SetPlayerScore(i,(score)+1);
}
}
return 1;
}
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(1014) : error 006: must be assigned to an array
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(1015) : error 006: must be assigned to an array
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(1016) : error 006: must be assigned to an array
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(1017) : error 006: must be assigned to an array
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(1018) : error 006: must be assigned to an array
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(1019) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.