17.08.2012, 21:05
Alguem pode me ajudar tirar esse;
Aki o Code dele;
PHP код:
warning 219: local variable "Bus" shadows a variable at a preceding level
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