Die Errors
C:\Users\Marcel\Saved Games\GTA\spiele\blabal\v.2\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
C:\Users\Marcel\Saved Games\GTA\spiele\blabal\v.2\gamemodes\Backup3.pwn(4999) : error 055: start of function body without function header
C:\Users\Marcel\Saved Games\GTA\spiele\blabal\v.2\gamemodes\Backup3.pwn(5019) : warning 217: loose indentation
C:\Users\Marcel\Saved Games\GTA\spiele\blabal\v.2\gamemodes\Backup3.pwn(5020) : warning 217: loose indentation
C:\Users\Marcel\Saved Games\GTA\spiele\blabal\v.2\gamemodes\Backup3.pwn(5020) : error 029: invalid expression, assumed zero
C:\Users\Marcel\Saved Games\GTA\spiele\blabal\v.2\gamemodes\Backup3.pwn(5020) : error 029: invalid expression, assumed zero
C:\Users\Marcel\Saved Games\GTA\spiele\blabal\v.2\gamemodes\Backup3.pwn(5020) : error 029: invalid expression, assumed zero
C:\Users\Marcel\Saved Games\GTA\spiele\blabal\v.2\gamemodes\Backup3.pwn(5020) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
die zeilen :
}
public OOCOff(color,const string[]){ for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(!gOoc[i]) { SendClientMessage(i, color, string); } } }}
{
}
public Lotto(number)
{
new JackpotFallen = 0;
new string[128];
new winner[MAX_PLAYER_NAME];
format(string, sizeof(string), "Lotterie News: Die heutige Gewinnnummer: %d.", number);
format(string, sizeof(string), "Lotterie News: ~n~ Heutige Nummer: ~p~ %d", number);
GameTextForAll(string, 4000, 6);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pLottoNr] > 0)
{
if(PlayerInfo[i][pLottoNr] == number)
{
JackpotFallen = 1;
GetPlayerName(i, winner, sizeof(winner));
format(string, sizeof(string), "Lotterie News: %s hat den Jackpot von $%d gewonnen!", winner, Jackpot);
OOCOff(0x0000FFFC,const string[]);
format(string, sizeof(string), "* Du gewinnst $%d mit Deinem Lottolos!", Jackpot);
OOCOff(0x0000FFFC,const string[]);
SendClientMessage(i, COLOR_WHITE, string);
format(string, sizeof(string), "~g~~h~~h~Gewinnt die Lotterie!!! ~n~~g~$%d !! ~n~~n~~n~~p~Glueckwunsch!!!!", Jackpot);
GameTextForPlayer(i, string, 5000, 3);
ConsumingMoney[i] = 1;
GivePlayerMoney(i, Jackpot);
}
else
{
SendClientMessage(i, COLOR_WHITE, "Leider hast Du diesmal nichts gewonnen!");
}
}
PlayerInfo[i][pLottoNr] = 0;
}
}
if(JackpotFallen)
{
new rand = random(10000); rand += 5789;
Jackpot = rand;
SaveStuff();
format(string, sizeof(string), "Lotterie News: Der neue Jackpot startet mit $%d.", Jackpot);
OOCOff(COLOR_WHITE,const string[]);
}
else
{
new rand = random(5000); rand += 2158;
Jackpot += rand;
SaveStuff();
format(string, sizeof(string), "Lotterie News: Der Jackpot wurde auf $%d erhöht.", Jackpot);
OOCOff(COLOR_WHITE,const string[]);
}
return 1;
}
MFG