Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
fuggveny PenzLevesz(playerid, penz){new penze = VanEnnyiPenze(playerid, penz);if(penze == 0) return false;else if(penze == 1) GiveMoney(playerid, -penz);else if(penze == 2) PlayerInfo[playerid][pAccount] -= penz;return true;}fuggveny VanEnnyiPenze(playerid, penz){if(GetMoney(playerid) >= penz)return 1;else if(PlayerInfo[playerid][pAccount] >= penz)return 2;return 0;}
#include <a_samp>new Text3D:entrancetext;new entrancegate, exitgate;new water1, water2, water3, water4, water5, water6, water7;new usingcarwash = -1;new unwashable[89][0] = {{403},{406},{408},{414},{417},{423},{424},{425},{430},{431},{432},{433},{435},{437},{441},{443},{444},{446},{447},{448},{452},{453},{454},{455},{456},{457},{460},{461},{462},{463},{464},{465},{468},{469},{471},{472},{473},{476},{481},{484},{485},{486},{487},{488},{493},{497},{498},{501},{508},{509},{510},{511},{512},{513},{514},{515},{519},{520},{521},{522},{523},{524},{530},{531},{532},{539},{544},{548},{553},{556},{557},{563},{564},{568},{571},{572},{573},{574},{577},{578},{581},{583},{586},{588},{592},{593},{594},{595},{609}};forward Autocruise(playerid, in);forward OpenExit(playerid);forward EndWash(playerid);forward Water(playerid, on);public OnFilterScriptInit(){print(\"\\n-----------------------------------------------\");print(\" \");print(\"---=== Auto Mosó Filterscript ===---\");print(\" \");print(\"-------------- Copyright -- 2013 --------------\\n\");entrancegate = CreateObject(17951,1911.21130371,-1780.68151855,14.15972233,0.00000000,0.00000000,90.00000000);exitgate = CreateObject(17951,1911.21130371,-1771.97814941,14.15972233,0.00000000,0.00000000,90.00000000);CreateObject(1250,1908.84997559,-1783.68945312,13.40625000,0.00000000,0.00000000,90.00000000);CreatePickup(1239, 1, 1911.1886,-1784.2952,13.5, -1);entrancetext = Create3DTextLabel(\"Senkisem használja a autómosót most.\\nÁr: $5 Parancs: (/carwash)\",0x008B00FF,1911.1886,-1784.2952,14.5,50,0,1);return 1;}public OnFilterScriptExit(){DestroyObject(entrancegate);DestroyObject(exitgate);DestroyObject(3);DestroyPickup(1);Delete3DTextLabel(entrancetext);for(new i = 0; i < MAX_PLAYERS; i++){if(GetPlayerVehicleID(i) == GetPlayerVehicleID(usingcarwash)){ DestroyPlayerObject(i, water1); DestroyPlayerObject(i, water2); DestroyPlayerObject(i, water3); DestroyPlayerObject(i, water4); DestroyPlayerObject(i, water5); DestroyPlayerObject(i, water6); DestroyPlayerObject(i, water7); TogglePlayerControllable(i, 1); SetCameraBehindPlayer(i);}}return 1;}public OnPlayerDisconnect(playerid, reason){if(usingcarwash == playerid){ SetVehicleToRespawn(GetPlayerVehicleID(playerid)); usingcarwash = -1; Update3DTextLabelText(entrancetext, 0x008B00FF, \"Senkisem használja a autómosót.\\nÁra: $5 Parancs: (/carwash)\");}return 1;}public OnPlayerDeath(playerid, killerid, reason){if(usingcarwash == playerid){ SetVehicleToRespawn(GetPlayerVehicleID(playerid)); usingcarwash = -1; Update3DTextLabelText(entrancetext, 0x008B00FF, \"Senkisem használja a autómosót.\\nÁr: $5 Parancs:(/carwash)\");}return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/carwash\", cmdtext, true) == 0){if(IsPlayerInRangeOfPoint(playerid, 5, 1911.1886,-1784.2952,13.0801)){ if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { for(new x = 0; x < sizeof(unwashable); x++) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == unwashable
máshol is használod a \"fuggveny\" macrot? bemásolnád ide?
fuggveny PenzLevesz(playerid, penz)
Richard kolléga ezzel azt akarta mondani hogy cseréld le a \'fuggveny\' szócskákat \'stock\' szócskára abban az esetben ha fs-be írod és nem pedig a see gamemode-jába írod bele ezeket
C:\\Documents and Settings\\Rendszergazda\\Asztal\\DarenRPG\\filterscripts\\automoso.pwn(112) : error 017: undefined symbol \"GetMoney\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\DarenRPG\\filterscripts\\automoso.pwn(116) : error 017: undefined symbol \"GiveMoney\"
Írd át a GetMoney-t GetPlayerMoney-ra aGiveMoney-t GivePlayerMoney-ra.