[Ajuda] Warrinrg
#1

Alguem pode me ajudar tirar esse;
PHP код:
warning 219local 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
Reply
#2

@edit
o do riichard ta certo.
Reply
#3

Ainda Ta com o Msm Warrirng...

HELP !
Reply
#4

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
Reply
#5

Sim Funfo Vlw @Richard !!


++REPP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)