Random spawn help. (Need help) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Random spawn help. (Need help) (
/showthread.php?tid=401523)
Random spawn help. (Need help) -
Strier - 23.12.2012
When i try to compile it, it says "Pawn compiler library stopped working"
I'd like to find out what's the error right there please.
Код:
public SetPlayerRandomSpawn
{
if (iSpawnSet[playerid] == 1)
{
new rand = random(sizeof(gMinPlayerSpawns));
SetPlayerPos(playerid, gMinPlayerSpawns[rand][0], gMinPlayerSpawns[rand][1], gMinPlayerSpawns[rand][2]);
SetPlayerFacingAngle(playerid, 270.0);
}
else if (iSpawnSet[playerid] == 0)
{
new rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
}
return 1;
}
Код:
//Minigun Random Spawns
new Float:gRandomPlayerSpawns[3][3] = {
{2205.6477,1607.9291,999.9702},
{2205.6162,1580.5106,999.9789},
{2171.5139,1618.7930,999.9766};
new Float:gMinPlayerSpawns[3][3] = {
{2205.6477,1607.9291,999.9702},
{2205.6162,1580.5106,999.9789},
{2171.5139,1618.7930,999.9766};
Help needed, reply please.
Re: Random spawn help. (Need help) -
Strier - 23.12.2012
Bump
Re: Random spawn help. (Need help) -
DaRk_RaiN - 23.12.2012
pawn Код:
//Minigun Random Spawns
new Float:gRandomPlayerSpawns[3][3] = {
{2205.6477,1607.9291,999.9702},
{2205.6162,1580.5106,999.9789},
{2171.5139,1618.7930,999.9766}
};
new Float:gMinPlayerSpawns[3][3] = {
{2205.6477,1607.9291,999.9702},
{2205.6162,1580.5106,999.9789},
{2171.5139,1618.7930,999.9766}
};
Re: Random spawn help. (Need help) -
Strier - 23.12.2012
Fixed up that, still pawn compiler crashes /:.