else if(IsPlayerInRangeOfPoint(i,4.0,1547.5663,-1610.0396,13.3828))
{
CreateBox(i,"STAATSREP","Tippe /rep ein, um dein Auto zu reparieren! [nur fuer Staatsautos]");
}
error 017: undefined symbol "CreateBox"
warum habe ich diesen error?
else if(IsPlayerInRangeOfPoint(i,4.0,1547.5663,-1610.0396,13.3828))
{
CreateBox(i,"STAATSREP","Tippe /rep ein, um dein Auto zu reparieren! [nur fuer Staatsautos]");
}
error 017: undefined symbol "CreateBox"
warum habe ich diesen error?
Die Funktion scheint nicht zu definiert sein in deinem Plugin Streamer.inc z.b
kannst du mir oderi rgendjemand ein guten streamer geben? (der auch auf Godfather geht)
new Text:ueberschrift[MAX_PLAYERS];
new Text:insidetext[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
ueberschrift[playerid] = TextDrawCreate(501.000000, 222.000000, "info");
TextDrawBackgroundColor(ueberschrift[playerid], 50);
TextDrawFont(ueberschrift[playerid], 2);
TextDrawLetterSize(ueberschrift[playerid], 0.320000, 1.299999);
TextDrawColor(ueberschrift[playerid], -1);
TextDrawSetOutline(ueberschrift[playerid], 1);
TextDrawSetProportional(ueberschrift[playerid], 1);
TextDrawUseBox(ueberschrift[playerid], 1);
TextDrawBoxColor(ueberschrift[playerid], 6062591);
TextDrawTextSize(ueberschrift[playerid], 586.000000, 0.000000);
insidetext[playerid] = TextDrawCreate(501.000000, 237.000000, "text");
TextDrawBackgroundColor(insidetext[playerid], 50);
TextDrawFont(insidetext[playerid], 0);
TextDrawLetterSize(insidetext[playerid], 0.270000, 1.000000);
TextDrawColor(insidetext[playerid], -1);
TextDrawSetOutline(insidetext[playerid], 1);
TextDrawSetProportional(insidetext[playerid], 1);
TextDrawUseBox(insidetext[playerid], 1);
TextDrawBoxColor(insidetext[playerid], 150);
TextDrawTextSize(insidetext[playerid], 586.000000, 0.000000);
return 1;
}
stock CreateBox(playerid,header[],text[])
{
new string[128];
format(string, sizeof string,"%s",header);
TextDrawSetString(Text:ueberschrift[playerid],string);
TextDrawShowForPlayer(playerid,Text:ueberschrift[playerid]);
format(string, sizeof string,"%s",text);
TextDrawSetString(Text:insidetext[playerid],string);
TextDrawShowForPlayer(playerid,Text:insidetext[playerid]);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
SetPVarInt(playerid,"CreateBoxEx",1);
SetTimerEx("CloseBox", 5000, 0, "i", playerid);
return 1;
}
forward CloseBox(playerid);
public CloseBox(playerid)
{
TextDrawHideForPlayer(playerid,Text:ueberschrift[playerid]);
TextDrawHideForPlayer(playerid,Text:insidetext[playerid]);
return 1;
}
PAWN Quelltext
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
new Text:ueberschrift[MAX_PLAYERS];
new Text:insidetext[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
ueberschrift[playerid] = TextDrawCreate(501.000000, 222.000000, "info");
TextDrawBackgroundColor(ueberschrift[playerid], 50);
TextDrawFont(ueberschrift[playerid], 2);
TextDrawLetterSize(ueberschrift[playerid], 0.320000, 1.299999);
TextDrawColor(ueberschrift[playerid], -1);
TextDrawSetOutline(ueberschrift[playerid], 1);
TextDrawSetProportional(ueberschrift[playerid], 1);
TextDrawUseBox(ueberschrift[playerid], 1);
TextDrawBoxColor(ueberschrift[playerid], 6062591);
TextDrawTextSize(ueberschrift[playerid], 586.000000, 0.000000);
insidetext[playerid] = TextDrawCreate(501.000000, 237.000000, "text");
TextDrawBackgroundColor(insidetext[playerid], 50);
TextDrawFont(insidetext[playerid], 0);
TextDrawLetterSize(insidetext[playerid], 0.270000, 1.000000);
TextDrawColor(insidetext[playerid], -1);
TextDrawSetOutline(insidetext[playerid], 1);
TextDrawSetProportional(insidetext[playerid], 1);
TextDrawUseBox(insidetext[playerid], 1);
TextDrawBoxColor(insidetext[playerid], 150);
TextDrawTextSize(insidetext[playerid], 586.000000, 0.000000);
return 1;
}
stock CreateBox(playerid,header[],text[])
{
new string[128];
format(string, sizeof string,"%s",header);
TextDrawSetString(Text:ueberschrift[playerid],string);
TextDrawShowForPlayer(playerid,Text:ueberschrift[playerid]);
format(string, sizeof string,"%s",text);
TextDrawSetString(Text:insidetext[playerid],string);
TextDrawShowForPlayer(playerid,Text:insidetext[playerid]);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
SetPVarInt(playerid,"CreateBoxEx",1);
SetTimerEx("CloseBox", 5000, 0, "i", playerid);
return 1;
}
forward CloseBox(playerid);
public CloseBox(playerid)
{
TextDrawHideForPlayer(playerid,Text:ueberschrift[playerid]);
TextDrawHideForPlayer(playerid,Text:insidetext[playerid]);
return 1;
}
was´?
...
in den Gamemode einfügen
was denkste warum ich dir das gebe wenn du nicht richtig googlen kannst
....
habe es gefixxt man muss das nicht einfügen was du da geschickt hast
close pls