Miért errorozik?
C:\\Users\\Rambi\\Desktop\\LEGGES\\filterscripts\\Textdraw.pwn(121) : error 017: undefined symbol \"TextDrawHideForALL\"
C:\\Users\\Rambi\\Desktop\\LEGGES\\filterscripts\\Textdraw.pwn(123) : error 017: undefined symbol \"TextDrawHideForALL\"
/*
Textraw by Rambi..........................
*/
#include <a_samp>
#include <fixchars.h>
#pragma tabsize 0
#define COLOR_GREEN 0x20B2AAAA
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Bar[MAX_PLAYERS];
new Text:EXPNUM[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\" Textdraw galaxy cucc \");
print(\" by Rambi \");
// Textdraw stuff
Textdraw0 = TextDrawCreate(489.000000, 428.000000, \"\");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 2.000000);
TextDrawColor(Textdraw0, -16776961);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
Textdraw1 = TextDrawCreate(499.000000, 96.000000, \"\");
TextDrawBackgroundColor(Textdraw1, 65535);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 2.000000);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
Textdraw2 = TextDrawCreate(73.000000, 327.000000, \"GalaxY\");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 0);
TextDrawLetterSize(Textdraw2, 0.500000, 2.000000);
TextDrawColor(Textdraw2, 65535);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
Textdraw3 = TextDrawCreate(230.000000, 390.000000, \"~n~\");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 840829490);
TextDrawTextSize(Textdraw0, 401.000000, 0.000000);
Textdraw4 = TextDrawCreate(267.000000, 368.000000, \"~r~ Szinted\");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.919999, 1.200000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
// exp number
EXPNUM[playerid] = TextDrawCreate(274.000000, 378.000000, \"~w~ 0/~r~20\");
TextDrawBackgroundColor(EXPNUM[playerid], 255);
TextDrawFont(EXPNUM[playerid], 1);
TextDrawLetterSize(EXPNUM[playerid], 0.500000, 1.100000);
TextDrawColor(EXPNUM[playerid], -1);
TextDrawSetOutline(EXPNUM[playerid], 0);
TextDrawSetProportional(EXPNUM[playerid], 1);
TextDrawSetShadow(EXPNUM[playerid], 1);
//bar
Bar[playerid] = TextDrawCreate(220.000000, 385.000000, \"~b~ Ölj meg valakit!\");
TextDrawBackgroundColor(Bar[playerid], 255);
TextDrawFont(Bar[playerid], 1);
TextDrawLetterSize(Bar[playerid], 0.500000, 1.900000);
TextDrawColor(Bar[playerid], -1);
TextDrawSetOutline(Bar[playerid], 0);
TextDrawSetProportional(Bar[playerid], 1);
TextDrawSetShadow(Bar[playerid], 1);
}
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Bar);
TextDrawShowForPlayer(i, EXPNUM);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawDestroy(Textdraw2);
TextDrawHideForALL(Textdraw3);
TextDrawDestroy(Textdraw3);
TextDrawHideForALL(Textdraw4);
TextDrawDestroy(Textdraw4);
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
TextDrawHideForAll(EXPNUM[playerid]);
TextDrawDestroy(EXPNUM[playerid]);
TextDrawHideForAll(Bar[playerid]);
TextDrawDestroy(Bar[playerid]);
}
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new msg[64];
new score = GetPlayerScore(killerid);
SetPlayerScore(killerid, score+1);
format(msg, sizeof(msg),\"XP: %d/50\",score+1);
TextDrawSetString(EXPNUM[killerid],msg);
GivePlayerMoney(killerid, 12000);
GameTextForPlayer(killerid, \"~p~1+ ~w~EXP Experience! ~n~~g~+$12000!!\",6000,4);
switch(GetPlayerScore(killerid))
{
case 1:
{
TextDrawSetString(Bar[killerid],\"~b~l\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 1/~r~20\");
}
case 2:
{
TextDrawSetString(Bar[killerid],\"~b~ll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 2/~r~20\");
}
case 3:
{
TextDrawSetString(Bar[killerid],\"~b~lll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 3/~r~20\");
}
case 4:
{
TextDrawSetString(Bar[killerid],\"~b~llll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 4/~r~20\");
}
case 5:
{
TextDrawSetString(Bar[killerid],\"~b~lllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 5/~r~20\");
}
case 6:
{
TextDrawSetString(Bar[killerid],\"~b~llllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 6/~r~20\");
}
case 7:
{
TextDrawSetString(Bar[killerid],\"~b~lllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 7/~r~20\");
}
case 8:
{
TextDrawSetString(Bar[killerid],\"~b~llllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 8/~r~20\");
}
case 9:
{
TextDrawSetString(Bar[killerid],\"~b~lllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 9/~r~20\");
}
case 10:
{
TextDrawSetString(Bar[killerid],\"~b~llllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 10/~r~20\");
}
case 11:
{
TextDrawSetString(Bar[killerid],\"~b~lllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 11/~r~20\");
}
case 12:
{
TextDrawSetString(Bar[killerid],\"~b~llllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 12/~r~20\");
}
case 13:
{
TextDrawSetString(Bar[killerid],\"~b~lllllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 13/~r~20\");
}
case 14:
{
TextDrawSetString(Bar[killerid],\"~b~llllllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 14/~r~20\");
}
case 15:
{
TextDrawSetString(Bar[killerid],\"~b~lllllllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 15/~r~20\");
}
case 16:
{
TextDrawSetString(Bar[killerid],\"~b~llllllllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 16/~r~20\");
}
case 17:
{
TextDrawSetString(Bar[killerid],\"~b~lllllllllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 17/~r~20\");
}
case 18:
{
TextDrawSetString(Bar[killerid],\"~b~llllllllllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 18/~r~~20\");
}
case 19:
{
TextDrawSetString(Bar[killerid],\"~b~lllllllllllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 19/~r~20\");
}
case 20:
{
TextDrawSetString(Bar[killerid],\"~b~lllllllllllllllllllll\");
TextDrawSetString(EXPNUM[killerid],\"~w~ 20/~r~20\");
new name[MAX_PLAYER_NAME], string[100];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"Sikeresen * %s TELJESÍTETTED A 20-AS SZINTET ** Kapsz Jutalmul egy Desert Eaglet!\", name);
SendClientMessageToAll(COLOR_GREEN, string);
GivePlayerWeapon(playerid,24,100);
SetPlayerHealth(playerid,100.0);
}
}
return 1;
}