Szerző Téma: Itt kérdezz warningot/error -t!  (Megtekintve 141993 alkalommal)

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #390 Dátum: 2014. február 10. - 19:47:05 »
0 Show voters
Csináld meg úgy mint a rendõrért pl lemásolod a rendõrnek a fegyveres részét és akkor nem lesz errort pl átírod Maffia

Itt kérdezz warningot/error -t!
« Válasz #391 Dátum: 2014. február 10. - 20:54:22 »
0 Show voters
Ezz nekem Magas!! .... LoL nem tudom mond el érthetöen mit csináljak (bocs!!)        :\'(

Dupla hozzászólás automatikusan összefûzve. ( 2014. február 12. - 15:35:15 )

Szia azért ha tudsz segiteni vagy valaki más itt sor!! :
   case ClassMafia:                                                                /* Mafia class */
{
format( missiontext, sizeof(missiontext), Mafia_NoJobText );            /* Preset the missiontext */
SetPlayerColor( playerid, ColorClassMafia );                            /*
                            * Set the playercolor (chatcolor for the player and color on the map)
                            * Start the PlayerCheckTimer to scan for players that carry mafia-loads (be sure the timer has been destroyed first)
                            */
KillTimer( APlayerData[playerid][PlayerCheckTimer] );
APlayerData[playerid][PlayerCheckTimer] = SetTimerEx( \"Mafia_CheckMafiaLoads\", 1000, true, \"i\", playerid );
/* Check if the police player can get weapons */
if ( MafiaGetsWeapons == false )
{
   /* Give up to 12 weapons to the player */
   for ( new i; i < 12; i++ )
                 GivePlayerWeapon( playerid, APoliceWeapons, PoliceWeaponsAmmo );
}
« Utoljára szerkesztve: 2014. február 12. - 15:35:15 írta [email protected] »

Itt kérdezz warningot/error -t!
« Válasz #392 Dátum: 2014. február 13. - 06:39:56 »
0 Show voters
Sziazstok Há tén nem is tudom elmondani hogy it mi az error segitség! : 
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(438) : warning 215: expression has no effect
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(804) : error 002: only a single statement (or expression) can follow each \"case\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(804) : warning 215: expression has no effect
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(809) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(811) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(814) : error 021: symbol already defined: \"GameTextForPlayer\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(816) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(818) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(821) : error 021: symbol already defined: \"GameTextForPlayer\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(823) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(825) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(828) : error 021: symbol already defined: \"GameTextForPlayer\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(830) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(832) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(835) : error 021: symbol already defined: \"GameTextForPlayer\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(837) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(839) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(842) : error 021: symbol already defined: \"GameTextForPlayer\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(844) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(846) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(849) : error 021: symbol already defined: \"GameTextForPlayer\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(851) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(853) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(856) : error 021: symbol already defined: \"GameTextForPlayer\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(858) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(860) : error 010: invalid function or declaration
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(863) : error 021: symbol already defined: \"GameTextForPlayer\"
C:\\Documents and Settings\\Rendszergazda\\Dokumentumok\\ \\Tapós a Gázba\\gamemodes\\PPC_Trucking.pwn(865) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
26 Errors.

Itt kérdezz warningot/error -t!
« Válasz #393 Dátum: 2014. február 15. - 15:39:34 »
0 Show voters
Sziasztok.Nekem ez a problémám lenne.Aki tud segíteni az segítsen
 
[15:33:17] Script[gamemodes/szerver.amx]: Run time error 19: \"File or function is not found\"

Itt kérdezz warningot/error -t!
« Válasz #394 Dátum: 2014. február 16. - 10:02:46 »
0 Show voters
C:\\Documents and Settings\\Rendszergazda\\Asztal\\music.pwn(12) : error 017: undefined symbol \"OK\"
C:\\Documents and Settings\\Rendszergazda\\Asztal\\music.pwn(12) : warning 215: expression has no effect
C:\\Documents and Settings\\Rendszergazda\\Asztal\\music.pwn(12) : error 001: expected token: \";\", but found \")\"
C:\\Documents and Settings\\Rendszergazda\\Asztal\\music.pwn(12) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Rendszergazda\\Asztal\\music.pwn(12) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Ezz a problem!!:?

Itt kérdezz warningot/error -t!
« Válasz #395 Dátum: 2014. február 18. - 19:59:00 »
0 Show voters
Másold be azt a sort amelyikre kiadja....
(Talán az a gond,hogy nem így írtad az OK-t \"OK\"...)

Nem elérhető Dfoglalo

  • 4069
  • Globális Moderátor
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #396 Dátum: 2014. február 18. - 20:07:55 »
+1 Show voters
Szerintem a 12. Sorban lemaradt egy pontosvesszõ.

Itt kérdezz warningot/error -t!
« Válasz #397 Dátum: 2014. február 24. - 19:38:50 »
0 Show voters
Az lenne a hibám, hogy amikor compileznem le a módot, ezt írja:
error 025: function heading differs from prototype
Ez a sor az:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)

Nem elérhető Dfoglalo

  • 4069
  • Globális Moderátor
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #398 Dátum: 2014. február 24. - 19:53:25 »
0 Show voters
Melyik verziót használod? Csak mert bodypart egyedül Z-tõl van.

Itt kérdezz warningot/error -t!
« Válasz #399 Dátum: 2014. február 24. - 21:05:16 »
0 Show voters
Idézetet írta: Dfoglalo date=1393268005\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"22125\" data-ipsquote-contentclass=\"forums_Topic
Melyik verziót használod? Csak mert bodypart egyedül Z-tõl van.
 
0.3z

Nem elérhető Dfoglalo

  • 4069
  • Globális Moderátor
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #400 Dátum: 2014. február 25. - 07:30:35 »
0 Show voters
Mindent lefrissítettél? Írd le, hogy miket!

Itt kérdezz warningot/error -t!
« Válasz #401 Dátum: 2014. március 10. - 17:35:40 »
0 Show voters
\\pawno\\include\\streamer.inc(38) : error 001: expected token: \";\", but found \"enum\"

 
Már probáltam lecserélni a streamert és csak ezt az error írja ki
 
/*
    SA-MP Streamer Plugin v2.5.2
    Copyright ˆ 2010 Incognito
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#if defined _streamer_included
#endinput
#endif
#define _streamer_included
#include <a_samp>
// Definitions
#define STREAMER_TYPE_OBJECT (0)
#define STREAMER_TYPE_PICKUP (1)
#define STREAMER_TYPE_CP (2)
#define STREAMER_TYPE_RACE_CP (3)
#define STREAMER_TYPE_MAP_ICON (4)
#define STREAMER_TYPE_3D_TEXT_LABEL (5)
#define STREAMER_TYPE_AREA (6)
// Enumerator
enum
{
E_STREAMER_ATTACHED_PLAYER,
E_STREAMER_ATTACHED_VEHICLE,
E_STREAMER_COLOR,
E_STREAMER_DISTANCE,
E_STREAMER_DRAW_DISTANCE,
E_STREAMER_EXTRA_ID,
E_STREAMER_INTERIOR_ID,
E_STREAMER_MAX_X,
E_STREAMER_MAX_Y,
E_STREAMER_MAX_Z,
E_STREAMER_MIN_X,
E_STREAMER_MIN_Y,
E_STREAMER_MIN_Z,
E_STREAMER_MODEL_ID,
E_STREAMER_MOVE_SPEED,
E_STREAMER_MOVE_X,
E_STREAMER_MOVE_Y,
E_STREAMER_MOVE_Z,
E_STREAMER_NEXT_X,
E_STREAMER_NEXT_Y,
E_STREAMER_NEXT_Z,
E_STREAMER_PLAYER_ID,
E_STREAMER_R_X,
E_STREAMER_R_Y,
E_STREAMER_R_Z,
E_STREAMER_SIZE,
E_STREAMER_STYLE,
E_STREAMER_TEST_LOS,
E_STREAMER_TYPE,
E_STREAMER_WORLD_ID,
E_STREAMER_X,
E_STREAMER_Y,
E_STREAMER_Z
}
// Natives (Settings)
native Streamer_TickRate(rate);
native Streamer_MaxItems(type, items);
native Streamer_VisibleItems(type, items);
native Streamer_CellDistance(Float:distance);
native Streamer_CellSize(Float:size);
// Natives (Updates)
native Streamer_Update(playerid);
native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z);
// Natives (Data Manipulation)
native Streamer_GetFloatData(type, {Text3D,_}:id, data, &Float:result);
native Streamer_SetFloatData(type, {Text3D,_}:id, data, Float:value);
native Streamer_GetIntData(type, {Text3D,_}:id, data);
native Streamer_SetIntData(type, {Text3D,_}:id, data, value);
native Streamer_IsInArrayData(type, {Text3D,_}:id, data, value);
native Streamer_AppendArrayData(type, {Text3D,_}:id, data, value);
native Streamer_RemoveArrayData(type, {Text3D,_}:id, data, value);
native Streamer_GetUpperBound(type);
// Natives (Miscellaneous)
native Streamer_IsItemVisible(playerid, type, {Text3D,_}:id);
native Streamer_DestroyAllVisibleItems(playerid, type);
native Streamer_CountVisibleItems(playerid, type);
// Natives (Objects)
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
native DestroyDynamicObject(objectid);
native IsValidDynamicObject(objectid);
native SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z);
native GetDynamicObjectPos(objectid, &Float:x, &Float:y, &Float:z);
native SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz);
native GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);
native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
native StopDynamicObject(objectid);
native DestroyAllDynamicObjects();
native CountDynamicObjects();
// Natives (Pickups)
native CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicPickup(pickupid);
native IsValidDynamicPickup(pickupid);
native DestroyAllDynamicPickups();
native CountDynamicPickups();
// Natives (Checkpoints)
native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicCP(checkpointid);
native IsValidDynamicCP(checkpointid);
native TogglePlayerDynamicCP(playerid, checkpointid, toggle);
native TogglePlayerAllDynamicCPs(playerid, toggle);
native IsPlayerInDynamicCP(playerid, checkpointid);
native DestroyAllDynamicCPs();
native CountDynamicCPs();
// Natives (Race Checkpoints)
native CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicRaceCP(checkpointid);
native IsValidDynamicRaceCP(checkpointid);
native TogglePlayerDynamicRaceCP(playerid, checkpointid, toggle);
native TogglePlayerAllDynamicRaceCPs(playerid, toggle);
native IsPlayerInDynamicRaceCP(playerid, checkpointid);
native DestroyAllDynamicRaceCPs();
native CountDynamicRaceCPs();
// Natives (Map Icons)
native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicMapIcon(iconid);
native IsValidDynamicMapIcon(iconid);
native DestroyAllDynamicMapIcons();
native CountDynamicMapIcons();
// Natives (3D Text Labels)
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamic3DTextLabel(Text3D:id);
native IsValidDynamic3DTextLabel(Text3D:id);
native UpdateDynamic3DTextLabelText(Text3D:id, color, const text[]);
native DestroyAllDynamic3DTextLabels();
native CountDynamic3DTextLabels();
// Natives (Areas)
native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
native DestroyDynamicArea(areaid);
native IsValidDynamicArea(areaid);
native TogglePlayerDynamicArea(playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas(playerid, toggle);
native IsPlayerInDynamicArea(playerid, areaid);
native AttachDynamicAreaToPlayer(areaid, playerid);
native AttachDynamicAreaToVehicle(areaid, vehicleid);
native DestroyAllDynamicAreas();
native CountDynamicAreas();
// Natives (Internals)
native Streamer_AddPlayer(playerid);
native Streamer_RemovePlayer(playerid);
native Streamer_VerifyPickup(playerid, pickupid);
native Streamer_VerifyCheckpoint(playerid, type, status);
native Streamer_RegisterInterface();
// Callbacks
forward OnDynamicObjectMoved(objectid);
forward OnPlayerPickUpDynamicPickup(playerid, pickupid);
forward OnPlayerEnterDynamicCP(playerid, checkpointid);
forward OnPlayerLeaveDynamicCP(playerid, checkpointid);
forward OnPlayerEnterDynamicRaceCP(playerid, checkpointid);
forward OnPlayerLeaveDynamicRaceCP(playerid, checkpointid);
forward OnPlayerEnterDynamicArea(playerid, areaid);
forward OnPlayerLeaveDynamicArea(playerid, areaid);
// Callback Hook Section
static bool:Streamer_g_OPC = false;
static bool:Streamer_g_OPDC = false;
static bool:Streamer_g_OPPP = false;
static bool:Streamer_g_OPEC = false;
static bool:Streamer_g_OPLC = false;
static bool:Streamer_g_OPERC = false;
static bool:Streamer_g_OPLRC = false;
static bool:Streamer_g_RI = false;
public OnFilterScriptInit()
{
if (!Streamer_g_RI)
{
Streamer_g_OPC = funcidx(\"Streamer_OnPlayerConnect\") != -1;
Streamer_g_OPDC = funcidx(\"Streamer_OnPlayerDisconnect\") != -1;
Streamer_g_OPPP = funcidx(\"Streamer_OnPlayerPickUpPickup\") != -1;
Streamer_g_OPEC = funcidx(\"Streamer_OnPlayerEnterCP\") != -1;
Streamer_g_OPLC = funcidx(\"Streamer_OnPlayerLeaveCP\") != -1;
Streamer_g_OPERC = funcidx(\"Streamer_OnPlayerEnterRaceCP\") != -1;
Streamer_g_OPLRC = funcidx(\"Streamer_OnPlayerLeaveRaceCP\") != -1;
Streamer_g_RI = true;
Streamer_RegisterInterface();
}
if (funcidx(\"Streamer_OnFilterScriptInit\") != -1)
{
return CallLocalFunction(\"Streamer_OnFilterScriptInit\", \"\");
}
return 1;
}
#if defined _ALS_OnFilterScriptInit
#undef OnFilterScriptInit
#else
#define _ALS_OnFilterScriptInit
#endif
#define OnFilterScriptInit Streamer_OnFilterScriptInit
forward Streamer_OnFilterScriptInit();
public OnGameModeInit()
{
if (!Streamer_g_RI)
{
Streamer_g_OPC = funcidx(\"Streamer_OnPlayerConnect\") != -1;
Streamer_g_OPDC = funcidx(\"Streamer_OnPlayerDisconnect\") != -1;
Streamer_g_OPPP = funcidx(\"Streamer_OnPlayerPickUpPickup\") != -1;
Streamer_g_OPEC = funcidx(\"Streamer_OnPlayerEnterCP\") != -1;
Streamer_g_OPLC = funcidx(\"Streamer_OnPlayerLeaveCP\") != -1;
Streamer_g_OPERC = funcidx(\"Streamer_OnPlayerEnterRaceCP\") != -1;
Streamer_g_OPLRC = funcidx(\"Streamer_OnPlayerLeaveRaceCP\") != -1;
Streamer_g_RI = true;
Streamer_RegisterInterface();
}
if (funcidx(\"Streamer_OnGameModeInit\") != -1)
{
return CallLocalFunction(\"Streamer_OnGameModeInit\", \"\");
}
return 1;
}
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit Streamer_OnGameModeInit
forward Streamer_OnGameModeInit();
public OnPlayerConnect(playerid)
{
if (!IsPlayerNPC(playerid))
{
Streamer_AddPlayer(playerid);
}
if (Streamer_g_OPC)
{
return CallLocalFunction(\"Streamer_OnPlayerConnect\", \"d\", playerid);
}
return 1;
}
#if defined _ALS_OnPlayerConnect
#undef OnPlayerConnect
#else
#define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect Streamer_OnPlayerConnect
forward Streamer_OnPlayerConnect(playerid);
public OnPlayerDisconnect(playerid, reason)
{
if (!IsPlayerNPC(playerid))
{
Streamer_RemovePlayer(playerid);
}
if (Streamer_g_OPDC)
{
return CallLocalFunction(\"Streamer_OnPlayerDisconnect\", \"dd\", playerid, reason);
}
return 1;
}
#if defined _ALS_OnPlayerDisconnect
#undef OnPlayerDisconnect
#else
#define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect
forward Streamer_OnPlayerDisconnect(playerid, reason);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (!IsPlayerNPC(playerid))
{
Streamer_VerifyPickup(playerid, pickupid);
}
if (Streamer_g_OPPP)
{
return CallLocalFunction(\"Streamer_OnPlayerPickUpPickup\", \"dd\", playerid, pickupid);
}
return 1;
}
#if defined _ALS_OnPlayerPickUpPickup
#undef OnPlayerPickUpPickup
#else
#define _ALS_OnPlayerPickUpPickup
#endif
#define OnPlayerPickUpPickup Streamer_OnPlayerPickUpPickup
forward Streamer_OnPlayerPickUpPickup(playerid, pickupid);
public OnPlayerEnterCheckpoint(playerid)
{
if (!IsPlayerNPC(playerid))
{
Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 0);
}
if (Streamer_g_OPEC)
{
return CallLocalFunction(\"Streamer_OnPlayerEnterCP\", \"d\", playerid);
}
return 1;
}
#if defined _ALS_OnPlayerEnterCheckpoint
#undef OnPlayerEnterCheckpoint
#else
#define _ALS_OnPlayerEnterCheckpoint
#endif
#define OnPlayerEnterCheckpoint Streamer_OnPlayerEnterCP
forward Streamer_OnPlayerEnterCP(playerid);
public OnPlayerLeaveCheckpoint(playerid)
{
if (!IsPlayerNPC(playerid))
{
Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 1);
}
if (Streamer_g_OPLC)
{
return CallLocalFunction(\"Streamer_OnPlayerLeaveCP\", \"d\", playerid);
}
return 1;
}
#if defined _ALS_OnPlayerLeaveCheckpoint
#undef OnPlayerLeaveCheckpoint
#else
#define _ALS_OnPlayerLeaveCheckpoint
#endif
#define OnPlayerLeaveCheckpoint Streamer_OnPlayerLeaveCP
forward Streamer_OnPlayerLeaveCP(playerid);
public OnPlayerEnterRaceCheckpoint(playerid)
{
if (!IsPlayerNPC(playerid))
{
Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 0);
}
if (Streamer_g_OPERC)
{
return CallLocalFunction(\"Streamer_OnPlayerEnterRaceCP\", \"d\", playerid);
}
return 1;
}
#if defined _ALS_OnPlayerEnterRaceCP
#undef OnPlayerEnterRaceCheckpoint
#else
#define _ALS_OnPlayerEnterRaceCP
#endif
#define OnPlayerEnterRaceCheckpoint Streamer_OnPlayerEnterRaceCP
forward Streamer_OnPlayerEnterRaceCP(playerid);
public OnPlayerLeaveRaceCheckpoint(playerid)
{
if (!IsPlayerNPC(playerid))
{
Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 1);
}
if (Streamer_g_OPLRC)
{
return CallLocalFunction(\"Streamer_OnPlayerLeaveRaceCP\", \"d\", playerid);
}
return 1;
}
#if defined _ALS_OnPlayerLeaveRaceCP
#undef OnPlayerLeaveRaceCheckpoint
#else
#define _ALS_OnPlayerLeaveRaceCP
#endif
#define OnPlayerLeaveRaceCheckpoint Streamer_OnPlayerLeaveRaceCP
forward Streamer_OnPlayerLeaveRaceCP(playerid);
// PAWN Invoke Section
forward Streamer_PublicFunction();
public Streamer_PublicFunction()
{
new Float:value;
CreatePickup(0, 0, 0.0, 0.0, 0.0, 0);
CreatePlayer3DTextLabel(0, \"\", 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0);
CreatePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
DeletePlayer3DTextLabel(0, PlayerText3D:0);
DestroyPickup(0);
DestroyPlayerObject(0, 0);
DisablePlayerCheckpoint(0);
DisablePlayerRaceCheckpoint(0);
GetPlayerInterior(0);
GetPlayerPos(0, value, value, value);
GetPlayerState(0);
GetPlayerVirtualWorld(0);
GetVehiclePos(0, value, value, value);
MovePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0);
RemovePlayerMapIcon(0, 0);
SetPlayerCheckpoint(0, 0.0, 0.0, 0.0, 0.0);
SetPlayerMapIcon(0, 0, 0.0, 0.0, 0.0, 0, 0, 0);
SetPlayerObjectPos(0, 0, 0.0, 0.0, 0.0);
SetPlayerObjectRot(0, 0, 0.0, 0.0, 0.0);
SetPlayerRaceCheckpoint(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
StopPlayerObject(0, 0);
UpdatePlayer3DTextLabelText(0, PlayerText3D:0, 0, \"\");
return 1;
}

Nem elérhető TheDon

  • 159
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #402 Dátum: 2014. március 10. - 17:39:01 »
0 Show voters
Nincs neve az enumnak.

Nem elérhető Dfoglalo

  • 4069
  • Globális Moderátor
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #403 Dátum: 2014. március 10. - 17:42:30 »
+1 Show voters
Idézetet írta: TheDon date=1394469541\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"22125\" data-ipsquote-contentclass=\"forums_Topic
Nincs neve az enumnak.
 
-->
Pl.
 
enum Valami;
{
}

 
Ezt pedig valahová a módba, a callbackokon kívülre, pl. az OnGameModInIt fölé, a többi globális változóhoz:
 
new ValamiValtozoja[MAX_PLAYERS][Valami]; // A MAX_PALYERS-es rész nem fontos, de gondolom ilyen kell neked. Na meg bármilyen tömböket rápakolhatsz még amúgy is.

Itt kérdezz warningot/error -t!
« Válasz #404 Dátum: 2014. március 13. - 21:01:05 »
0 Show voters
Sziasztok!
Régóta nézegetem a fórumot, most úgy éreztem regisztrálok és meglátjuk, milyen segítõkész emberkék vannak itt.  :D
Lenne egy kérésem:
Kellene egy Vehicle Respawn FS, régóta próbálgatom de, ez valahogyan mindig hibás lett. (Error) :/
Tehát, én úgy gondolkoztam, hogy pl.: így nézne ki: (Ez erõs piros)[ ADMIN ]: (erõs zöld)XY, (ez pedig sárga)helyére rakta az összes nem használt jármûvet!
Gondolom, most linkelni fogtok témákat errõl. :O De, nekem pontosan ilyen kellene. ;)
Válaszotokat, megoldásokat elõre köszönöm.  :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal