[Ajuda] Warrinrg - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Warrinrg (
/showthread.php?tid=369694)
Warrinrg -
_LorD_ - 17.08.2012
Alguem pode me ajudar tirar esse;
PHP код:
warning 219: local variable "Bus" shadows a variable at a preceding level
Aki o Code dele;
pawn Код:
//------------------------------------------------------------------------------
//NPC SCRIPT MADY BY FLAKE AND REDIRECT_LEFT
//
//Contains:
//1 beagle driver
//1 coach driver
//1 boat driver
//3 pilots - For LS LV and SF
//
// special thanks to redirect_left for fexing errors :)
//------------------------------------------------------------------------------
//==============================================================================
#include <a_samp>
#define COLOR_GREEN 0x33AA33AA
new Bus;
public OnGameModeInit()
{
ConnectNPC("Bus","Bus");
Bus =AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
print(" Npc Bus Bmc Pack Loaded!");
print(" By:Bruno_Rj!"); //Please do not remove this, this is all I ask in return
return 1;
}
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid)) return 0;
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"Bus", true))
{
SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
PutPlayerInVehicle(playerid, Bus,0);
new Text3D:Bus = Create3DTextLabel("NPC_BusDriver(ID:2)", 0x33AA33AA, 30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Bus, playerid, 0.0, 0.0, 0.5);
}
return 1;
}
////////////////////////////////////////////////////////////////////////////////
//End of the script
Re: Warrinrg -
Bruno Alves - 17.08.2012
@edit
o do riichard ta certo.
Re: Warrinrg -
_LorD_ - 17.08.2012
Ainda Ta com o Msm Warrirng...
HELP !
Re: Warrinrg -
@Riichard - 17.08.2012
pawn Код:
//1 beagle driver
//1 coach driver
//1 boat driver
//3 pilots - For LS LV and SF
//
// special thanks to redirect_left for fexing errors :)
//------------------------------------------------------------------------------
//==============================================================================
#include <a_samp>
#define COLOR_GREEN 0x33AA33AA
new Bus;
public OnGameModeInit()
{
ConnectNPC("Bus","Bus");
Bus =AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
print(" Npc Bus Bmc Pack Loaded!");
print(" By:Bruno_Rj!"); //Please do not remove this, this is all I ask in return
return 1;
}
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid)) return 0;
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"Bus", true))
{
SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
PutPlayerInVehicle(playerid, Bus,0);
new Text3D:Bus2 = Create3DTextLabel("NPC_BusDriver(ID:2)", 0x33AA33AA, 30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Bus2, playerid, 0.0, 0.0, 0.5);
}
return 1;
}
////////////////////////////////////////////////////////////////////////////////
//End of the script
Re: Warrinrg -
_LorD_ - 17.08.2012
Sim Funfo Vlw @Richard !!
++REPP