E:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(12) : error 010: invalid function or declarationE:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(21) : error 010: invalid function or declarationE:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(32) : error 010: invalid function or declarationE:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(43) : error 010: invalid function or declarationE:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(53) : error 010: invalid function or declarationE:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(65) : error 017: undefined symbol \"textdraw0\"E:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(66) : error 017: undefined symbol \"textdraw1\"E:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(67) : error 017: undefined symbol \"textdraw2\"E:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(68) : error 017: undefined symbol \"textdraw3\"E:\\Program Files (x86)\\Rockstar Games\\SAMP 0.3e Server\\scriptfiles\\TD_teszt.pwn(69) : error 017: undefined symbol \"textdraw4\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 10 Errors.
#include <a_samp>new Text:Textdraw0;new Text:Textdraw1;new Text:Textdraw2;new Text:Textdraw3;new Text:Textdraw4; Textdraw0 = TextDrawCreate(0.000000, 0.000000, \"LOADSC4:loadsc4\");TextDrawLetterSize(Textdraw0, 0.000000, 0.000000);TextDrawTextSize(Textdraw0, 640.000000, 447.004425);TextDrawAlignment(Textdraw0, 1);TextDrawColor(Textdraw0, -1);TextDrawSetShadow(Textdraw0, 0);TextDrawSetOutline(Textdraw0, 0);TextDrawFont(Textdraw0, 4);Textdraw1 = TextDrawCreate(47.333332, 405.695556, \" \");TextDrawLetterSize(Textdraw1, 0.000000, -18.568519);TextDrawTextSize(Textdraw1, 230.888885, 0.000000);TextDrawAlignment(Textdraw1, 1);TextDrawColor(Textdraw1, 8388863);TextDrawUseBox(Textdraw1, true);TextDrawBoxColor(Textdraw1, 255);TextDrawSetShadow(Textdraw1, 0);TextDrawSetOutline(Textdraw1, 0);TextDrawFont(Textdraw1, 0);Textdraw2 = TextDrawCreate(57.777656, 249.884429, \"Green\");TextDrawLetterSize(Textdraw2, 0.764222, 2.535821);TextDrawTextSize(Textdraw2, 8.444480, -4.480011);TextDrawAlignment(Textdraw2, 1);TextDrawColor(Textdraw2, 16711935);TextDrawSetShadow(Textdraw2, 0);TextDrawSetOutline(Textdraw2, 0);TextDrawBackgroundColor(Textdraw2, 51);TextDrawFont(Textdraw2, 3);TextDrawSetProportional(Textdraw2, 1);Textdraw3 = TextDrawCreate(117.777809, 281.742340, \"Life\");TextDrawLetterSize(Textdraw3, 0.654444, 2.749868);TextDrawAlignment(Textdraw3, 1);TextDrawColor(Textdraw3, 16711935);TextDrawSetShadow(Textdraw3, 0);TextDrawSetOutline(Textdraw3, 1);TextDrawBackgroundColor(Textdraw3, 51);TextDrawFont(Textdraw3, 3);TextDrawSetProportional(Textdraw3, 1);Textdraw4 = TextDrawCreate(141.777770, 330.524475, \"RPG\");TextDrawLetterSize(Textdraw4, 0.955333, 3.835022);TextDrawAlignment(Textdraw4, 1);TextDrawColor(Textdraw4, 16711935);TextDrawSetShadow(Textdraw4, 0);TextDrawSetOutline(Textdraw4, 1);TextDrawBackgroundColor(Textdraw4, 51);TextDrawFont(Textdraw4, 3);TextDrawSetProportional(Textdraw4, 1);public OnPlayerConnect(playerid){ TextDrawShowForPlayer(playerid, textdraw0); TextDrawShowForPlayer(playerid, textdraw1); TextDrawShowForPlayer(playerid, textdraw2); TextDrawShowForPlayer(playerid, textdraw3); TextDrawShowForPlayer(playerid, textdraw4); return 1;}public OnPlayerSpawn(playerid){ TextDrawHideForPlayer(playerid, Textdraw0); TextDrawHideForPlayer(playerid, Textdraw1); TextDrawHideForPlayer(playerid, Textdraw2); TextDrawHideForPlayer(playerid, Textdraw3); TextDrawHideForPlayer(playerid, Textdraw4); return 1;}
#include <a_samp>#define FILTERSCRIPTnew Text:Textdraw0;new Text:Textdraw1;new Text:Textdraw2;new Text:Textdraw3;new Text:Textdraw4;public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw2); TextDrawShowForPlayer(playerid, Textdraw3); TextDrawShowForPlayer(playerid, Textdraw4); return 1;}public OnPlayerSpawn(playerid) { TextDrawHideForPlayer(playerid, Textdraw0); TextDrawHideForPlayer(playerid, Textdraw1); TextDrawHideForPlayer(playerid, Textdraw2); TextDrawHideForPlayer(playerid, Textdraw3); TextDrawHideForPlayer(playerid, Textdraw4); return 1;}public OnFilterScriptInit() { Textdraw0 = TextDrawCreate(0.000000, 0.000000, \"LOADSC4:loadsc4\"); TextDrawLetterSize(Textdraw0, 0.000000, 0.000000); TextDrawTextSize(Textdraw0, 640.000000, 447.004425); TextDrawAlignment(Textdraw0, 1); TextDrawColor(Textdraw0, -1); TextDrawSetShadow(Textdraw0, 0); TextDrawSetOutline(Textdraw0, 0); TextDrawFont(Textdraw0, 4); Textdraw1 = TextDrawCreate(47.333332, 405.695556, \"Malibu\"); TextDrawLetterSize(Textdraw1, 0.000000, -18.568519); TextDrawTextSize(Textdraw1, 230.888885, 0.000000); TextDrawAlignment(Textdraw1, 1); TextDrawColor(Textdraw1, 8388863); TextDrawUseBox(Textdraw1, true); TextDrawBoxColor(Textdraw1, 255); TextDrawSetShadow(Textdraw1, 0); TextDrawSetOutline(Textdraw1, 0); TextDrawFont(Textdraw1, 0); Textdraw2 = TextDrawCreate(57.777656, 249.884429, \"Green\"); TextDrawLetterSize(Textdraw2, 0.764222, 2.535821); TextDrawTextSize(Textdraw2, 8.444480, -4.480011); TextDrawAlignment(Textdraw2, 1); TextDrawColor(Textdraw2, 16711935); TextDrawSetShadow(Textdraw2, 0); TextDrawSetOutline(Textdraw2, 0); TextDrawBackgroundColor(Textdraw2, 51); TextDrawFont(Textdraw2, 3); TextDrawSetProportional(Textdraw2, 1); Textdraw3 = TextDrawCreate(117.777809, 281.742340, \"Life\"); TextDrawLetterSize(Textdraw3, 0.654444, 2.749868); TextDrawAlignment(Textdraw3, 1); TextDrawColor(Textdraw3, 16711935); TextDrawSetShadow(Textdraw3, 0); TextDrawSetOutline(Textdraw3, 1); TextDrawBackgroundColor(Textdraw3, 51); TextDrawFont(Textdraw3, 3); TextDrawSetProportional(Textdraw3, 1); Textdraw4 = TextDrawCreate(141.777770, 330.524475, \"RPG\"); TextDrawLetterSize(Textdraw4, 0.955333, 3.835022); TextDrawAlignment(Textdraw4, 1); TextDrawColor(Textdraw4, 16711935); TextDrawSetShadow(Textdraw4, 0); TextDrawSetOutline(Textdraw4, 1); TextDrawBackgroundColor(Textdraw4, 51); TextDrawFont(Textdraw4, 3); TextDrawSetProportional(Textdraw4, 1); return 1;}
Ezek az errorok mitöl lehetne[/quote]Az utolsó 5db error azért keletkezett, mert nem figyeltél oda a kis- és nagybetűkre.Az első 5db pedig azért, mert nem tetted be (jelen esetben) az OnFilterScriptInit- alá a létrehozott textdrawokat.