// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> new HydraVehicle; public OnFilterScriptInit() { ConnectNPC ( "Hydra", "hydra_ls"); print("\n--------------------------------------"); print(" Bluebay Hydra (LS)-->NPC Betцltve!"); print("--------------------------------------\n"); HydraVehicle = CreateVehicle(520, 0.0, 0.0, 5.0, 0.0, 1, 1, 5000); } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "HydraVehicle", true)); { PutPlayerInVehicle(playerid, HydraVehicle, 0); return 1; } return 1; } //Normбl dolgok jцhetnek ide return 1; }
C:\Szerverek\MFA MOD\filterscripts\hydra_ls.pwn(10) : warning 217: loose indentation C:\Szerverek\MFA MOD\filterscripts\hydra_ls.pwn(22) : error 036: empty statement C:\Szerverek\MFA MOD\filterscripts\hydra_ls.pwn(27) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
#include <a_samp>
new HydraVehicle;
public OnFilterScriptInit()
{
ConnectNPC ( "Hydra", "hydra_ls");
print("\n--------------------------------------");
print(" Bluebay Hydra (LS)-->NPC Betцltve!");
print("--------------------------------------\n");
HydraVehicle = CreateVehicle(520, 0.0, 0.0, 5.0, 0.0, 1, 1, 5000);
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "HydraVehicle", true));
{
PutPlayerInVehicle(playerid, HydraVehicle, 0);
}
return 1;
}
return 1;
}
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> new HydraVehicle; public OnFilterScriptInit() { ConnectNPC ( "Hydra", "hydra_ls"); print("\n--------------------------------------"); print(" Bluebay Hydra (LS)-->NPC Betцltve!"); print("--------------------------------------\n"); HydraVehicle = CreateVehicle(520, 0.0, 0.0, 5.0, 0.0, 1, 1, 5000); } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "HydraVehicle", true)); { PutPlayerInVehicle(playerid, HydraVehicle, 0); return 1; } return 1; }
C:\Szerverek\MFA MOD\filterscripts\hydra_ls.pwn(10) : warning 217: loose indentation C:\Szerverek\MFA MOD\filterscripts\hydra_ls.pwn(22) : error 036: empty statement C:\Szerverek\MFA MOD\filterscripts\hydra_ls.pwn(27) : warning 225: unreachable code C:\Szerverek\MFA MOD\filterscripts\hydra_ls.pwn(29) : warning 209: function "OnPlayerSpawn" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
Which?
Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> new HydraVehicle; public OnFilterScriptInit() { ConnectNPC ( "Hydra", "hydra_ls"); print("\n--------------------------------------"); print(" Bluebay Hydra (LS)-->NPC Betцltve!"); print("--------------------------------------\n"); HydraVehicle = CreateVehicle(520, 0.0, 0.0, 5.0, 0.0, 1, 1, 5000); } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "HydraVehicle", true)); { PutPlayerInVehicle(playerid, HydraVehicle, 0); return 1; } return 1; } |
pawn Код:
|