small problem with random spawns command -
Cpt.Shady - 02.10.2011
COMMAND:
if(!strcmp(cmdtext, "/minigun", true))
{
new Float:RandomSpawn[][4] =
{
// Positions, (X, Y, Z and Facing Angle)
{-2796.9854, 1224.8180, 20.5429, 192.0335},
{-2454.2170, 503.8759, 30.0790, 267.2932},
{-2669.7322, -6.0874, 6.1328, 89.8853}
};
GameTextForPlayer(playerid,"~r~~h~Bun venit la Minigun",3000,5);
GivePlayerWeapon(playerid, 38, 100000);
SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
return 1;
}
ERROR:
C:\Users\ozn\Desktop\editme.pwn(3133) : warning 204: symbol is assigned a value that is never used: "RandomSpawn"
statement: new Float:RandomSpawn[][4] is used to onplayerconnect!
HELP.. THX
Re: small problem with random spawns command -
Pharrel - 02.10.2011
you create the variable RandomSpawn but never use...
Re: small problem with random spawns command -
Cpt.Shady - 02.10.2011
you can help me?
Re: small problem with random spawns command -
Kingunit - 02.10.2011
pawn Код:
if(!strcmp(cmdtext, "/minigun", true))
{
GameTextForPlayer(playerid,"~r~~h~Bun venit la Minigun",3000,5);
GivePlayerWeapon(playerid, 38, 100000);
SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
return 1;
}
Re: small problem with random spawns command -
Pharrel - 02.10.2011
pawn Код:
if(!strcmp(cmdtext, "/minigun", true))
{
new Float:RandomSpawn[3][4] =
{
// Positions, (X, Y, Z and Facing Angle)
{-2796.9854, 1224.8180, 20.5429, 192.0335},
{-2454.2170, 503.8759, 30.0790, 267.2932},
{-2669.7322, -6.0874, 6.1328, 89.8853}
};
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid,RandomSpawn[rand][0],RandomSpawn[rand][1],RandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid,RandomSpawn[rand][3]);
GameTextForPlayer(playerid,"~r~~h~Bun venit la Minigun",3000,5);
GivePlayerWeapon(playerid, 38, 100000);
SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
return 1;
}
Re: small problem with random spawns command -
Cpt.Shady - 02.10.2011
@Kingunit ! take me to cool? lol
@Pharrel ! big thanks man ! I sent a PM!
RESOLVED!! LOCK PLS!