#define FILTERSCRIPT#include <a_samp>new Text:Box[MAX_PLAYERS];new Text:Ft[MAX_PLAYERS];new check;public OnFilterScriptInit(){ print(\"\\n|==========================================================|\"); print(\"\\n| Forint script |\"); print(\"\\n| Betöltve |\"); print(\"\\n|==========================================================|\"); return 1;}public OnFilterScriptExit(){ print(\"\\n|==========================================================|\"); print(\"\\n| Forint script |\"); print(\"\\n| Kikapcsolva |\"); print(\"\\n|==========================================================|\"); KillTimer(check); return 1;}public OnPlayerConnect(playerid){Box[playerid] = TextDrawCreate(622.000000, 79.000000, \" \"); TextDrawBackgroundColor(Box[playerid], 255); TextDrawFont(Box[playerid], 1); TextDrawLetterSize(Box[playerid], 0.500000, 1.000000); TextDrawColor(Box[playerid], -1); TextDrawSetOutline(Box[playerid], 0); TextDrawSetProportional(Box[playerid], 1); TextDrawSetShadow(Box[playerid], 1); TextDrawUseBox(Box[playerid], 1); TextDrawBoxColor(Box[playerid], 0x000035FF); TextDrawTextSize(Box[playerid], 483.000000, 49.000000); Ft[playerid] = TextDrawCreate(490.000000, 77.000000, \"00000000FT\"); //a forint mindenhol legelõl volt TextDrawBackgroundColor(Ft[playerid], 0xff0000AA);//Kûlsõ TextDrawFont(Ft[playerid], 1); TextDrawLetterSize(Ft[playerid], 0.539999, 2.299999); TextDrawColor(Ft[playerid], 0x585859AA);//belsõ TextDrawSetOutline(Ft[playerid], 1); TextDrawSetProportional(Ft[playerid], 1); SetTimerEx(\"CheckMoney\", 2000, true, \"i\", playerid); return 1;}public OnPlayerDisconnect(playerid){ TextDrawHideForPlayer(playerid, Ft[playerid]); TextDrawHideForPlayer(playerid, Box[playerid]); return 1;}forward CheckMoney(playerid);public CheckMoney(playerid){ new string[128]; if(GetPlayerMoney(playerid) < 10) { format(string, sizeof(string), \"0000000%iFT\", GetPlayerMoney(playerid)); TextDrawSetString(Ft[playerid], string); TextDrawShowForPlayer(playerid, Ft[playerid]); TextDrawShowForPlayer(playerid, Box[playerid]); } if(10 <= GetPlayerMoney(playerid) < 100) { format(string, sizeof(string), \"000000%iFT\", GetPlayerMoney(playerid)); TextDrawSetString(Ft[playerid], string); TextDrawShowForPlayer(playerid, Ft[playerid]); TextDrawShowForPlayer(playerid, Box[playerid]); } if(100 <= GetPlayerMoney(playerid) < 1000) { format(string, sizeof(string), \"00000%iFT\", GetPlayerMoney(playerid)); TextDrawSetString(Ft[playerid], string); TextDrawShowForPlayer(playerid, Ft[playerid]); TextDrawShowForPlayer(playerid, Box[playerid]); } if(1000 <= GetPlayerMoney(playerid) < 10000) { format(string, sizeof(string), \"0000%iFT\", GetPlayerMoney(playerid)); TextDrawSetString(Ft[playerid], string); TextDrawShowForPlayer(playerid, Ft[playerid]); TextDrawShowForPlayer(playerid, Box[playerid]); } if(10000 <= GetPlayerMoney(playerid) < 100000) { format(string, sizeof(string), \"000%iFT\", GetPlayerMoney(playerid)); TextDrawSetString(Ft[playerid], string); TextDrawShowForPlayer(playerid, Ft[playerid]); TextDrawShowForPlayer(playerid, Box[playerid]); } if(100000 <= GetPlayerMoney(playerid) < 1000000) { format(string, sizeof(string), \"00%iFT\", GetPlayerMoney(playerid)); TextDrawSetString(Ft[playerid], string); TextDrawShowForPlayer(playerid, Ft[playerid]); TextDrawShowForPlayer(playerid, Box[playerid]); } if(1000000 <= GetPlayerMoney(playerid) < 10000000) { format(string, sizeof(string), \"0%iFT\", GetPlayerMoney(playerid)); TextDrawSetString(Ft[playerid], string); TextDrawShowForPlayer(playerid, Ft[playerid]); TextDrawShowForPlayer(playerid, Box[playerid]); } if(10000000 <= GetPlayerMoney(playerid) < 999999999) { format(string, sizeof(string), \"%iFT\", GetPlayerMoney(playerid)); TextDrawSetString(Ft[playerid], string); TextDrawShowForPlayer(playerid, Ft[playerid]); TextDrawShowForPlayer(playerid, Box[playerid]); } return 1;}
Tök jó
E:\\cucc,server\\samp server\\filterscripts\\forint.pwn(10) : error 017: undefined symbol \"check\"E:\\cucc,server\\samp server\\filterscripts\\forint.pwn(16) : error 017: undefined symbol \"Box\"E:\\cucc,server\\samp server\\filterscripts\\forint.pwn(16) : warning 215: expression has no effectE:\\cucc,server\\samp server\\filterscripts\\forint.pwn(16) : error 001: expected token: \";\", but found \"]\"E:\\cucc,server\\samp server\\filterscripts\\forint.pwn(16) : error 029: invalid expression, assumed zeroE:\\cucc,server\\samp server\\filterscripts\\forint.pwn(16) : 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.
Off: Nem bírtál volna várni míg a témanyitó leírja, hogy ki készítette. Nagyon kíváncsi lettem volna rá mit válaszol. Köszi szépen :/
http://sampforum.hu/index.php?topic=6021.0 [/quote]Köszönöm, bár én is tudtam ki a készítõ. Valószínû rosszul fogalmaztam, a témanyitónak szólt.[gmod]Mindenesetre a témanyitónak, kötelezõ, kihelyezni, vagy legalább megemlíteni, a szkript eredetét. Valamint annak se látom értelmét, hogy újra megosszuk.. Erõs a gyanúm, hogy itt, a témanyitó rosszban sántikált... De mind1. A témát zárom, a fórumon az eredeti készítõ publikálta, akinek kell az úgy is megtalálja.[/gmod]