Guten Abend,
ich habe ein kleines Problem.
Ich habe mir das Ticketsystem vom Vincent Petritz heruntergeladen.
Ich habe den anderen Teil bereits im Script eingefügt,
mit diesem Teil hatte ich aber kleine Schwierigkeiten..
Ich weiß nicht unter welcher Spalte ich das "OnFilterScriptInit" einfügen soll,
da es ja kein Filterscript mehr ist, weil ich es ja im Script einfügen, frage ich mich
was ich da jetzt schreiben soll und unter welcher Spalte.
Das gleiche auch bei "OnFilterScriptExit"
Wenn ich das alles so einfüge, kommen diese Errors:
C:\Users\Administrator\Desktop\Edit\Pawno\include\dutils.inc(137) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Pawno\include\dutils.inc(177) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Pawno\include\dutils.inc(285) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Pawno\include\dutils.inc(342) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Pawno\include\M_Bot.inc(274) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Pawno\include\M_Bot.inc(281) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Pawno\include\SII.inc(260) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(2744) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(2874) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(2958) : error 021: symbol already defined: "GetName"
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(3251) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(3724) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(3983) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(3984) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4020) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4030) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4051) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4146) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4161) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4208) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4223) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4276) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4324) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4344) : warning 209: function "Streamer_OnPlayerDisconnect" should return a value
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4346) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4347) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4351) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4360) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4364) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4369) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4374) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4379) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4383) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4386) : error 054: unmatched closing brace ("}")
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4387) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4392) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4399) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4402) : error 021: symbol already defined: "DestroyObject"
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4410) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4411) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4413) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4419) : error 054: unmatched closing brace ("}")
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4421) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4423) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4426) : error 021: symbol already defined: "format"
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4429) : error 054: unmatched closing brace ("}")
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4453) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4458) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Administrator\Desktop\Edit\Mr.Puma\Berkanneu.pwn(4462) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
public OnFilterScriptInit()
{
printf(" Ticketsystem von Vincent Petritz");
SupportDraws[0] = TextDrawCreate(495.000000, 114.000000, "0 Ticket(s)");
TextDrawBackgroundColor(SupportDraws[0], 255);
TextDrawFont(SupportDraws[0], 2);
TextDrawLetterSize(SupportDraws[0], 0.200000, 1.000000);
TextDrawColor(SupportDraws[0], -1);
TextDrawSetOutline(SupportDraws[0], 1);
TextDrawSetProportional(SupportDraws[0], 1);
TextDrawSetShadow(SupportDraws[0], 0);
TextDrawUseBox(SupportDraws[0], 1);
TextDrawBoxColor(SupportDraws[0], 0x000000AA);
TextDrawTextSize(SupportDraws[0], 588.000000, 0.000000);
SupportDraws[1] = TextDrawCreate(495.000000, 130.000000, " ");
TextDrawBackgroundColor(SupportDraws[1], 255);
TextDrawFont(SupportDraws[1], 2);
TextDrawLetterSize(SupportDraws[1], 0.200000, 1.000000);
TextDrawColor(SupportDraws[1], -1);
TextDrawSetOutline(SupportDraws[1], 1);
TextDrawSetProportional(SupportDraws[1], 1);
TextDrawUseBox(SupportDraws[1], 1);
TextDrawBoxColor(SupportDraws[1], 0x000000AA);
TextDrawTextSize(SupportDraws[1], 602.000000, 121.000000);
return 1;
}
public OnFilterScriptExit()
{
for(new playerid; playerid < GetMaxPlayers(); playerid++) {
TextDrawHideForPlayer(playerid, SupportDraws[0]);
TextDrawHideForPlayer(playerid, SupportDraws[1]);
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
if(GetPVarInt(playerid, "ticket_player")) {
new Player = GetPVarInt(playerid, "ticket_player");
SendClientMessage(Player, COLOR_YELLOW, "[SUPPORT-TICKET] Dein Gegenüber hat das Spiel verlassen!");
DeletePVar(playerid, "ticket_player");
}
if(GetPVarInt(playerid, "ticket_sup")) {
new Sup = GetPVarInt(playerid, "ticket_sup");
SendClientMessage(Sup, COLOR_YELLOW, "[SUPPORT-TICKET] Dein Gegenüber hat das Spiel verlassen!");
DeletePVar(Sup, "ticket_sup");
DeletePVar(Sup, "ticket_opened");
}
return 1;
}