// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp> ///////////////Szint//////////#define egy \"Szint:1\"#define ketto \"Szint:2\"#define harom \"Szint:3\"#define negy \"Szint:4\"#define ot \"Szint:5\"#define hat \"Szint:6\"///////////////////////////new Text:Textdraw0;new Text:Textdraw2; public OnGameModeInit(){SetTimer(\"Szamitas\", 1000, true);///////RANGPONTOK//////////////////////////////// Textdraw0 = TextDrawCreate(1.000000, 423.000000, \"_\"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 2); TextDrawLetterSize(Textdraw0, 0.700000, 2.799999); TextDrawColor(Textdraw0, 0xffffffff); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); /////////////////////LEVEL//////////////////////////////////// Textdraw2 = TextDrawCreate(483.000000, 422.000000, \"_\"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 2); TextDrawLetterSize(Textdraw2, 0.600000, 3.100000); TextDrawColor(Textdraw2, 0xffffffff); TextDrawSetOutline(Textdraw2, 0); TextDrawSetProportional(Textdraw2, 1); TextDrawSetShadow(Textdraw2, 1);return 1;}public OnGameModeExit(){return 1;} public OnPlayerConnect(playerid){ TextDrawShowForPlayer(playerid,Textdraw0); TextDrawShowForPlayer(playerid,Textdraw2);return 1;}public OnPlayerDisconnect(playerid, reason){ TextDrawHideForPlayer(playerid,Textdraw0); TextDrawHideForPlayer(playerid,Textdraw2);return 1;}forward Szamitas(playerid);public Szamitas(playerid){new string[65],pont = GetPlayerScore(playerid);format(string,sizeof(string),\"Pont: %d\",pont);TextDrawSetString(Textdraw0, string);/////////////////////Szint///////////////////////////////////////////// if((GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 50)) { TextDrawSetString(Textdraw2,egy); } if((GetPlayerScore(playerid) >= 51) && (GetPlayerScore(playerid) <= 100)) { TextDrawSetString(Textdraw2,ketto); } if((GetPlayerScore(playerid) >= 101) && (GetPlayerScore(playerid) <= 140)) { TextDrawSetString(Textdraw2,harom); } if((GetPlayerScore(playerid) >= 141) && (GetPlayerScore(playerid) <= 180)) { TextDrawSetString(Textdraw2,negy); } if((GetPlayerScore(playerid) >= 181) && (GetPlayerScore(playerid) <= 201)) { TextDrawSetString(Textdraw2,ot); } if((GetPlayerScore(playerid) >= 202) && (GetPlayerScore(playerid) <= 300)) { TextDrawSetString(Textdraw2,hat); } return 1; }
// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp> ///////////////Szint//////////#define egy \"Szint:1\"#define ketto \"Szint:2\"#define harom \"Szint:3\"#define negy \"Szint:4\"#define ot \"Szint:5\"#define hat \"Szint:6\"///////////////////////////new Text:Textdraw0;new Text:Textdraw2; public OnGameModeInit(){SetTimer(\"Szamitas\", 1000, true);///////RANGPONTOK//////////////////////////////// Textdraw0 = TextDrawCreate(1.000000, 423.000000, \"_\"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 2); TextDrawLetterSize(Textdraw0, 0.700000, 2.799999); TextDrawColor(Textdraw0, 0xffffffff); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); /////////////////////LEVEL//////////////////////////////////// Textdraw2 = TextDrawCreate(483.000000, 422.000000, \"_\"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 2); TextDrawLetterSize(Textdraw2, 0.600000, 3.100000); TextDrawColor(Textdraw2, 0xffffffff); TextDrawSetOutline(Textdraw2, 0); TextDrawSetProportional(Textdraw2, 1); TextDrawSetShadow(Textdraw2, 1);return 1;}public OnGameModeExit(){return 1;} public OnPlayerConnect(playerid){ TextDrawShowForPlayer(playerid,Textdraw0); TextDrawShowForPlayer(playerid,Textdraw2);return 1;}public OnPlayerDisconnect(playerid, reason){ TextDrawHideForPlayer(playerid,Textdraw0); TextDrawHideForPlayer(playerid,Textdraw2);return 1;}forward Szamitas();public Szamitas(){ for(new playerid=-1;playerid<MAX_PLAYERS;playerid++) {new string[65],pont = GetPlayerScore(playerid);format(string,sizeof(string),\"Pont: %d\",pont);TextDrawSetString(Textdraw0, string);/////////////////////Szint///////////////////////////////////////////// if((GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 50)) { TextDrawSetString(Textdraw2,egy); } if((GetPlayerScore(playerid) >= 51) && (GetPlayerScore(playerid) <= 100)) { TextDrawSetString(Textdraw2,ketto); } if((GetPlayerScore(playerid) >= 101) && (GetPlayerScore(playerid) <= 140)) { TextDrawSetString(Textdraw2,harom); } if((GetPlayerScore(playerid) >= 141) && (GetPlayerScore(playerid) <= 180)) { TextDrawSetString(Textdraw2,negy); } if((GetPlayerScore(playerid) >= 181) && (GetPlayerScore(playerid) <= 201)) { TextDrawSetString(Textdraw2,ot); } if((GetPlayerScore(playerid) >= 202) && (GetPlayerScore(playerid) <= 300)) { TextDrawSetString(Textdraw2,hat); } return 1; }
forward Szamitas(playerid);public Szamitas(playerid){for(new playerid=-1;playerid<MAX_PLAYERS;playerid++) {new string[65],pont = GetPlayerScore(playerid);format(string,sizeof(string),\"Pont: %d\",pont);TextDrawSetString(Textdraw0, string);/////////////////////Szint///////////////////////////////////////////// if((GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 50)) { TextDrawSetString(Textdraw2,egy); } if((GetPlayerScore(playerid) >= 51) && (GetPlayerScore(playerid) <= 100)) { TextDrawSetString(Textdraw2,ketto); } if((GetPlayerScore(playerid) >= 101) && (GetPlayerScore(playerid) <= 140)) { TextDrawSetString(Textdraw2,harom); } if((GetPlayerScore(playerid) >= 141) && (GetPlayerScore(playerid) <= 180)) { TextDrawSetString(Textdraw2,negy); } if((GetPlayerScore(playerid) >= 181) && (GetPlayerScore(playerid) <= 201)) { TextDrawSetString(Textdraw2,ot); } if((GetPlayerScore(playerid) >= 202) && (GetPlayerScore(playerid) <= 300)) { TextDrawSetString(Textdraw2,hat); } return 1;
C:\\Games\\03e\\filterscripts\\stats.pwn(107) : error 017: undefined symbol \"Save\"C:\\Games\\03e\\filterscripts\\stats.pwn(162) : warning 219: local variable \"playerid\" shadows a variable at a preceding levelC:\\Games\\03e\\filterscripts\\stats.pwn(194) : error 029: invalid expression, assumed zeroC:\\Games\\03e\\filterscripts\\stats.pwn(194) : error 004: function \"OnPlayerSpawn\" is not implementedC:\\Games\\03e\\filterscripts\\stats.pwn(204) : warning 225: unreachable codeC:\\Games\\03e\\filterscripts\\stats.pwn(204) : error 029: invalid expression, assumed zeroC:\\Games\\03e\\filterscripts\\stats.pwn(204) : error 004: function \"OnPlayerDeath\" is not implementedC:\\Games\\03e\\filterscripts\\stats.pwn(215) : error 017: undefined symbol \"killerid\"C:\\Games\\03e\\filterscripts\\stats.pwn(220) : warning 225: unreachable codeC:\\Games\\03e\\filterscripts\\stats.pwn(220) : error 029: invalid expression, assumed zeroC:\\Games\\03e\\filterscripts\\stats.pwn(220) : error 004: function \"OnPlayerCommandText\" is not implementedC:\\Games\\03e\\filterscripts\\stats.pwn(222) : error 017: undefined symbol \"cmdtext\"C:\\Games\\03e\\filterscripts\\stats.pwn(232) : error 017: undefined symbol \"cmdtext\"C:\\Games\\03e\\filterscripts\\stats.pwn(246) : warning 225: unreachable codeC:\\Games\\03e\\filterscripts\\stats.pwn(246) : error 029: invalid expression, assumed zeroC:\\Games\\03e\\filterscripts\\stats.pwn(246) : error 004: function \"StatsInfromation\" is not implementedC:\\Games\\03e\\filterscripts\\stats.pwn(259) : warning 225: unreachable codeC:\\Games\\03e\\filterscripts\\stats.pwn(259) : error 029: invalid expression, assumed zeroC:\\Games\\03e\\filterscripts\\stats.pwn(259) : error 017: undefined symbol \"Save\"C:\\Games\\03e\\filterscripts\\stats.pwn(279) : error 030: compound statement not closed at the end of file (started at line 162)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 15 Errors.
forward Szamitas();public Szamitas(){for(new playerid=-1;playerid<MAX_PLAYERS;playerid++) {new string[65],pont = GetPlayerScore(playerid);format(string,sizeof(string),\"Pont: %d\",pont);TextDrawSetString(Textdraw0, string);/////////////////////Szint///////////////////////////////////////////// if((GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 50)) { TextDrawSetString(Textdraw2,egy); } if((GetPlayerScore(playerid) >= 51) && (GetPlayerScore(playerid) <= 100)) { TextDrawSetString(Textdraw2,ketto); } if((GetPlayerScore(playerid) >= 101) && (GetPlayerScore(playerid) <= 140)) { TextDrawSetString(Textdraw2,harom); } if((GetPlayerScore(playerid) >= 141) && (GetPlayerScore(playerid) <= 180)) { TextDrawSetString(Textdraw2,negy); } if((GetPlayerScore(playerid) >= 181) && (GetPlayerScore(playerid) <= 201)) { TextDrawSetString(Textdraw2,ot); } if((GetPlayerScore(playerid) >= 202) && (GetPlayerScore(playerid) <= 300)) { TextDrawSetString(Textdraw2,hat); } } return 1;}
#include <a_samp> ///////////////Szint//////////#define egy \"Szint:1\"#define ketto \"Szint:2\"#define harom \"Szint:3\"#define negy \"Szint:4\"#define ot \"Szint:5\"#define hat \"Szint:6\"/////////////////////////// new PlayerText:Textdraw0[MAX_PLAYERS];new PlayerText:Textdraw2[MAX_PLAYERS]; public OnFilterScriptInit(){SetTimer(\"Szamitas\", 1000, true);return 1;} public OnPlayerConnect(playerid){ Textdraw0[playerid] = CreatePlayerTextDraw(playerid,1.000000, 423.000000, \"_\"); PlayerTextDrawBackgroundColor(playerid,Textdraw0[playerid], 255); PlayerTextDrawFont(playerid,Textdraw0[playerid], 2); PlayerTextDrawLetterSize(playerid,Textdraw0[playerid], 0.700000, 2.799999); PlayerTextDrawColor(playerid,Textdraw0[playerid], 0xffffffff); PlayerTextDrawSetOutline(playerid,Textdraw0[playerid], 0); PlayerTextDrawSetProportional(playerid,Textdraw0[playerid], 1); PlayerTextDrawSetShadow(playerid,Textdraw0[playerid], 1); /////////////////////LEVEL//////////////////////////////////// Textdraw2[playerid] = CreatePlayerTextDraw(playerid,483.000000, 422.000000, \"_\"); PlayerTextDrawBackgroundColor(playerid,Textdraw2[playerid], 255); PlayerTextDrawFont(playerid,Textdraw2[playerid], 2); PlayerTextDrawLetterSize(playerid,Textdraw2[playerid], 0.600000, 3.100000); PlayerTextDrawColor(playerid,Textdraw2[playerid], 0xffffffff); PlayerTextDrawSetOutline(playerid,Textdraw2[playerid], 0); PlayerTextDrawSetProportional(playerid,Textdraw2[playerid], 1); PlayerTextDrawSetShadow(playerid,Textdraw2[playerid], 1); return 1;} public OnPlayerSpawn(playerid){ PlayerTextDrawShow(playerid, Textdraw0[playerid]); PlayerTextDrawShow(playerid, Textdraw2[playerid]);return 1;}public OnPlayerDisconnect(playerid, reason){ PlayerTextDrawHide(playerid,Textdraw0[playerid]); PlayerTextDrawHide(playerid,Textdraw2[playerid]);return 1;}forward Szamitas(playerid);public Szamitas(playerid){new string[65],pont = GetPlayerScore(playerid);format(string,sizeof(string),\"Pont: %d\",pont); PlayerTextDrawSetString(playerid,Textdraw0[playerid], string);/////////////////////Szint///////////////////////////////////////////// if((GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 50)) { PlayerTextDrawSetString(playerid,Textdraw2[playerid],egy); } if((GetPlayerScore(playerid) >= 51) && (GetPlayerScore(playerid) <= 100)) { PlayerTextDrawSetString(playerid,Textdraw2[playerid],ketto); } if((GetPlayerScore(playerid) >= 101) && (GetPlayerScore(playerid) <= 140)) { PlayerTextDrawSetString(playerid,Textdraw2[playerid],harom); } if((GetPlayerScore(playerid) >= 141) && (GetPlayerScore(playerid) <= 180)) { PlayerTextDrawSetString(playerid,Textdraw2[playerid],negy); } if((GetPlayerScore(playerid) >= 181) && (GetPlayerScore(playerid) <= 201)) { PlayerTextDrawSetString(playerid,Textdraw2[playerid],ot); } if((GetPlayerScore(playerid) >= 202) && (GetPlayerScore(playerid) <= 300)) { PlayerTextDrawSetString(playerid,Textdraw2[playerid],hat); } return 1; }
Hy!Van egy ilyen rendszerem amit letöltöttem és átlakítottam.Szóval mikor megölök egy játékost kapok pontot, de ezt a pontot a másik játékos akit megöltem az is megkapja ez miért van?