#include <a_samp> new EnableBoast[MAX_PLAYERS]; #include <streamer> #include <a_samp> #include <zcmd> #include <streamer> #include <sscanf2> #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) #define COLOR_GREEN 0x33AA33AA #if defined FILTERSCRIPT #undef MAX_PLAYERS #define MAX_PLAYERS 50 new Text:welcomeText; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" ---Gamemode by wendylorenzo---"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server"); SetGameModeText("All-In-One"); AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(2, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(3, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(4, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(5, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(6, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(7, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(8, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(9, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(10, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(11, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(12, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(13, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(14, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(15, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(24, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(25, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(27, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(29, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(165, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(166, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(286, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(45, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, -2556.3979,1217.2249,42.1484); SetPlayerFacingAngle(playerid, 9.1927); SetPlayerCameraPos(playerid, -2556.9431,1224,42.1484); SetPlayerCameraLookAt(playerid, -2556.3979,1217.2249,42.1484); return 1; } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid,welcomeText); PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/105633328/drug%20dealer%20girl%20-%20mike%20posner%20LYRICS..mp3"); RemoveBuildingForPlayer(playerid, 11580, -794.8281, 2025.4375, 31.3359, 0.25); RemoveBuildingForPlayer(playerid, 11581, -615.2891, 2028.5547, 31.3359, 0.25); RemoveBuildingForPlayer(playerid, 11649, -781.2734, 2140.5156, 41.1953, 0.25); RemoveBuildingForPlayer(playerid, 11650, -781.1953, 2097.1641, 41.1953, 0.25); RemoveBuildingForPlayer(playerid, 11651, -651.2813, 2145.9609, 41.1953, 0.25); RemoveBuildingForPlayer(playerid, 11652, -651.3516, 2102.6172, 41.1953, 0.25); RemoveBuildingForPlayer(playerid, 11539, -794.8281, 2025.4375, 31.3359, 0.25); RemoveBuildingForPlayer(playerid, 11540, -615.2891, 2028.5547, 31.3359, 0.25); RemoveBuildingForPlayer(playerid, 11485, -781.1953, 2097.1641, 41.1953, 0.25); RemoveBuildingForPlayer(playerid, 11487, -651.3516, 2102.6172, 41.1953, 0.25); RemoveBuildingForPlayer(playerid, 11484, -781.2734, 2140.5156, 41.1953, 0.25); RemoveBuildingForPlayer(playerid, 11486, -651.2813, 2145.9609, 41.1953, 0.25); CreateObject(17026, -556.41, 2000.15, 8.17, 0.00, -98.00, 329.82); CreateObject(17026, -544.08, 1995.19, 54.85, 0.00, 0.00, 298.87); CreateObject(17026, -544.86, 1994.52, 41.43, 0.00, -98.00, 343.54); CreateObject(17026, -544.86, 1994.52, 25.49, 0.00, -98.00, 343.54); CreateObject(17026, -546.20, 1996.63, 15.44, 0.00, -98.00, 343.54); CreateObject(17026, -550.61, 2002.27, 3.71, 0.00, -98.00, 332.65); CreateObject(17026, -559.05, 2000.04, -5.19, 0.00, -98.00, 332.46); CreateObject(17026, -564.32, 2009.62, 2.85, -33.00, 84.00, 193.96); CreateObject(17026, -549.02, 2022.98, 38.57, -33.00, 84.00, 224.06); CreateObject(17026, -549.06, 2022.97, 25.22, -33.00, 84.00, 224.06); CreateObject(17026, -549.06, 2022.97, 11.10, -33.00, 84.00, 224.06); CreateObject(17026, -561.31, 2035.63, 32.92, 0.00, 0.00, 10.71); CreateObject(17026, -588.56, 2037.20, 3.47, -33.00, 84.00, 265.88); CreateObject(17026, -587.12, 2045.81, 38.57, -33.00, 84.00, 265.88); CreateObject(17026, -587.12, 2045.81, 28.82, -33.00, 84.00, 265.88); CreateObject(17026, -587.12, 2045.81, 15.58, -33.00, 84.00, 265.88); CreateObject(17026, -595.73, 2054.05, 32.92, 0.00, 0.00, 25.83); CreateObject(17026, -589.26, 2046.12, 32.92, 0.00, 0.00, 40.23); CreateObject(17026, -597.52, 2047.60, 32.92, 0.00, 0.00, 40.23); CreateObject(17026, -639.69, 2041.42, 1.34, -33.00, 84.00, 267.69); CreateObject(17026, -629.89, 2062.72, 38.57, -33.00, 84.00, 265.88); CreateObject(17026, -631.76, 2057.97, 36.21, -33.00, 84.00, 265.73); CreateObject(17026, -635.76, 2053.02, 22.33, -33.00, 84.00, 267.69); CreateObject(17026, -637.07, 2051.03, 9.97, -33.00, 84.00, 267.69); CreateObject(17026, -682.53, 2058.35, 18.09, -33.00, 84.00, 276.32); CreateObject(17026, -681.03, 2068.31, 38.57, -33.00, 84.00, 276.32); CreateObject(17026, -681.67, 2064.05, 23.98, -33.00, 84.00, 276.32); CreateObject(17026, -684.21, 2047.64, 8.61, -33.00, 84.00, 276.32); CreateObject(17026, -681.50, 2037.52, 3.32, -33.00, 84.00, 273.39); CreateObject(17026, -724.28, 2039.41, 3.97, -33.00, 84.00, 276.32); CreateObject(17026, -723.56, 2064.63, 38.57, -33.00, 84.00, 276.32); CreateObject(17026, -723.83, 2055.15, 25.50, -33.00, 84.00, 276.32); CreateObject(17026, -724.00, 2049.04, 10.78, -33.00, 84.00, 276.32); CreateObject(17026, -769.40, 2036.09, 1.33, -33.00, 84.00, 266.18); CreateObject(17026, -760.60, 2060.18, 38.57, -33.00, 84.00, 266.18); CreateObject(17026, -767.85, 2049.04, 24.66, -33.00, 84.00, 266.18); CreateObject(17026, -769.03, 2042.05, 11.60, -33.00, 84.00, 266.18); CreateObject(17026, -798.15, 2039.34, 2.73, -33.00, 84.00, 284.72); CreateObject(17026, -802.99, 2061.55, 38.57, -33.00, 84.00, 284.72); CreateObject(17026, -798.93, 2053.10, 26.80, -33.00, 84.00, 284.72); CreateObject(17026, -799.08, 2043.11, 20.52, -33.00, 84.00, 284.72); CreateObject(17026, -799.08, 2043.11, 10.37, -33.00, 84.00, 284.72); CreateObject(17026, -858.18, 2004.55, 33.05, -33.00, 84.00, 335.87); CreateObject(17026, -844.66, 2042.15, 38.57, -33.00, 84.00, 318.08); CreateObject(17026, -847.51, 2037.59, 22.76, -33.00, 84.00, 318.08); CreateObject(17026, -842.55, 2025.59, 12.90, -33.00, 84.00, 318.08); CreateObject(17026, -840.00, 2013.39, 2.83, -33.00, 84.00, 339.89); CreateObject(17026, -844.98, 2012.23, 9.03, -33.00, 84.00, 339.89); CreateObject(17026, -847.33, 2013.21, 15.98, -33.00, 84.00, 339.89); CreateObject(17026, -865.69, 2005.84, 22.67, -33.00, 84.00, 349.59); CreateObject(17026, -868.52, 2007.44, 48.17, 0.00, 0.00, 234.36); CreateObject(17026, -852.93, 2010.96, 22.67, -33.00, 84.00, 349.59); CreateObject(17026, -858.18, 2004.55, 52.17, -33.00, 84.00, 335.87); CreateObject(17026, -858.18, 2004.55, 48.28, -33.00, 84.00, 335.87); CreateObject(17026, -869.48, 1996.56, 55.71, 0.00, 0.00, 210.80); CreateObject(17026, -853.66, 2033.40, 39.31, 0.00, 0.00, 296.70); CreateObject(17026, -825.12, 2060.02, 39.31, 0.00, 0.00, 262.50); CreateObject(17026, -784.14, 2066.08, 39.31, 0.00, 0.00, 234.78); CreateObject(17026, -736.95, 2070.71, 39.31, 0.00, 0.00, 234.78); CreateObject(17026, -639.96, 2064.57, 35.22, 0.00, 0.00, 52.65); CreateObject(17026, -669.58, 2066.52, 35.22, 0.00, 0.00, 52.65); CreateObject(17026, -702.44, 2067.41, 35.22, 0.00, 0.00, 52.65); CreateObject(648, -837.16, 2035.02, 44.51, 0.00, 0.00, 75.65); CreateObject(648, -813.90, 2043.14, 44.51, 0.00, 0.00, 65.58); CreateObject(648, -780.33, 2047.64, 44.51, 0.00, 0.00, 51.48); CreateObject(648, -748.68, 2049.51, 44.51, 0.00, 0.00, 51.48); CreateObject(648, -722.76, 2051.25, 44.51, 0.00, 0.00, 51.48); CreateObject(648, -695.99, 2049.83, 44.51, 0.00, 0.00, 51.48); CreateObject(648, -665.64, 2056.11, 44.51, 0.00, 0.00, 52.62); CreateObject(648, -633.29, 2047.63, 44.51, 0.00, 0.00, 52.62); CreateObject(648, -604.71, 2032.61, 44.51, 0.00, 0.00, 52.62); CreateObject(648, -569.37, 2023.36, 44.51, 0.00, 0.00, 2.10); CreateObject(648, -557.62, 1997.21, 44.51, 0.00, 0.00, -26.22); CreateObject(652, -696.35, 2022.72, 9.58, 0.00, 0.00, 0.00); CreateObject(652, -723.19, 2032.40, 19.28, 0.00, 0.00, 0.00); CreateObject(652, -670.81, 2036.46, 15.35, 0.00, 0.00, 0.00); CreateObject(652, -748.38, 2028.84, 10.38, 0.00, 0.00, 0.00); CreateObject(652, -773.30, 2024.82, 19.08, 0.00, 0.00, 0.00); CreateObject(652, -660.08, 2020.98, 2.92, 0.00, 0.00, 0.00); CreateObject(652, -616.85, 2033.81, 9.06, 0.00, 0.00, 0.00); CreateObject(652, -594.50, 2020.86, 11.22, 0.00, 0.00, 0.00); CreateObject(652, -798.26, 2020.62, 9.94, 0.00, 0.00, 0.00); CreateObject(7588, -707.89, 1910.02, 0.40, 0.00, 0.00, 0.00); CreateObject(7588, -657.91, 1919.79, 2.05, 0.00, 0.00, -97.14); CreateObject(7588, -764.23, 1956.08, 2.05, 0.00, 0.00, -145.68); CreateObject(7588, -654.43, 1981.68, 2.05, 0.00, 0.00, -274.68); CreateObject(7588, -766.92, 1861.66, 2.05, 0.00, 0.00, -333.90); CreateObject(7588, -680.39, 1852.10, 2.05, 0.00, 0.00, -446.34); CreateObject(7588, -753.48, 1778.38, 2.05, 0.00, 0.00, -621.84); CreateObject(7588, -673.81, 1781.38, 2.05, 0.00, 0.00, -718.14); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { StopAudioStreamForPlayer(playerid); EnableBoast[playerid] = 0; return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/chute", cmdtext, true, 5) == 0) { GivePlayerWeapon(playerid,46,1); return 1; } if (strcmp("/help", cmdtext, true, 5) == 0) { SendClientMessage(playerid, COLOR_GREEN, "/chute, /kill, /help!"); return 1; } if (strcmp("/info", cmdtext, true, 5) == 0) { ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Information.", "This server has been hosted and scripted by wendylorenzo(ILOVEJULIAN). Owner: wendylorenzo(ILOVEJULIAN) Master-Admin: matmaxvp", "Close", ""); return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(newkeys & KEY_FIRE) { if(EnableBoast[playerid] == 0) { new Float:vx,Float:vy,Float:vz; GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz); SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * 1.8, vy *1.8, vz * 1.8); } } } if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if (newkeys & KEY_CROUCH) { if(EnableBoast[playerid] == 0) { new Float:x, Float:y, Float:z; GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z); SetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z+0.5); } } } return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
PlayerTextDrawShow(playerid, welcomeText[playerid]);
welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");
why the CreateObject Are In OnPlayerConnect?
It Should be In OnGameModeInit |
Add this
pawn Код:
pawn Код:
|
C:\Users\LoReNzO\Desktop\GTA Server\gamemodes\Lorenzo.pwn(44) : error 017: undefined symbol "welcomeText" C:\Users\LoReNzO\Desktop\GTA Server\gamemodes\Lorenzo.pwn(45) : error 017: undefined symbol "playerid" C:\Users\LoReNzO\Desktop\GTA Server\gamemodes\Lorenzo.pwn(45) : error 017: undefined symbol "playerid" C:\Users\LoReNzO\Desktop\GTA Server\gamemodes\Lorenzo.pwn(45) : error 029: invalid expression, assumed zero C:\Users\LoReNzO\Desktop\GTA Server\gamemodes\Lorenzo.pwn(45) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
TextDrawShowForPlayer(playerid,welcomeText);
TextDrawShowForAll(welcomeText);
This
pawn Код:
pawn Код:
|
new PlayerText:welcomeText[MAX_PLAYERS];