Szerző Téma: Spawn HELP!! :$  (Megtekintve 1137 alkalommal)

Spawn HELP!! :$
« Dátum: 2011. Július 19. - 19:37:04 »
0 Show voters
Szewasztok!
Szeretném megkérdezni hogy megvan nekem a szerverembe a Drift World gamemod és hogy miért nem fogadja el a random spawn scriptet ugyanis mindig egy helyre spawnol!
Ebbe szeretnék segítséget kérni

Spawn HELP!! :$
« Válasz #1 Dátum: 2011. Július 19. - 19:51:25 »
0 Show voters
OnPlayerSpawn-hoz be van illesztve minden?
Ha nem akkor illeszd be az egészet,és azt is írd oda hogy mit hova tettél!

Spawn HELP!! :$
« Válasz #2 Dátum: 2011. Július 19. - 19:54:27 »
0 Show voters
ott csak SendClienMessage van

Spawn HELP!! :$
« Válasz #3 Dátum: 2011. Július 19. - 20:04:12 »
0 Show voters
akkor azért nem jó
másold be a sciriptet hogy megtudjam nézni mit kell odaírni

Spawn HELP!! :$
« Válasz #4 Dátum: 2011. Július 19. - 20:18:10 »
0 Show voters
Ez lenne a script: ;D
[pawn]#include <a_samp>
#if defined FILTERSCRIPT
new rand = random(sizeof(RandomSpawn))
new Float:RandomSpawn[10][3] =
{
{1253.9523,-813.0944,84.1478},
{-1989.9164,205.9039,27.6799},
{2782.3008,-2009.5143,13.5547},
{2327.1885,1417.5101,42.8203},
{1993.5059,-2316.2561,13.5469},
{1319.7286,1260.2727,10.8203},
{-1673.5229,-162.0981,14.1484},
{-325.1331,1533.0276,75.3594},
{1395.9432,705.1171,10.8203},
{-2406.5579,-595.5874,132.6484}
};
public OnPlayerRequestClass ( playerid, classid  )
    new rand = random ( sizeof ( RandomSpawn ) );
    new Float: Angle = GetPlayerFacingAngle ( playerid, Angle );
    SetSpawnInfo ( playerid, GetPlayerTeam ( playerid ), GetPlayerSkin ( playerid ), RandomSpawn [ rand ] [ 0 ], RandomSpawn [ rand ] [ 1 ], RandomSpawn [ rand ] [ 2 ],RandomSpawn [ rand ] [ 3 ],RandomSpawn [ rand ] [ 4 ],RandomSpawn [ rand ] [ 5 ],RandomSpawn [ rand ] [ 6 ],RandomSpawn [ rand ] [ 7 ],RandomSpawn [ rand ] [ 8 ],RandomSpawn [ rand ] [ 9 ], Angle, 0, 0, 0, 0, 0, 0  );
    return 1;
}
#endif[/pawn]

Spawn HELP!! :$
« Válasz #5 Dátum: 2011. Július 19. - 20:29:50 »
0 Show voters
Szerintem az OnPlayerRequestClass-t,húzd ki és írd be az OnPlayerSpawn függvényhez,hogy:
[pawn]new rand = random ( sizeof ( RandomSpawn ) );
SetPlayerPos( playerid,RandomSpawn[ rand ] [ 0 ], RandomSpawm[ rand ] [ 1 ], RandomSpawn[ rand ] [ 2 ] );[/pawn]

Spawn HELP!! :$
« Válasz #6 Dátum: 2011. Július 19. - 20:37:13 »
0 Show voters
Nem jo.
6Error
[pawn]C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(752) : warning 213: tag mismatch
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(752) : warning 202: number of arguments does not match definition
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(778) : error 017: undefined symbol \"RandomSpawn\"
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(778) : error 029: invalid expression, assumed zero
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(778) : warning 215: expression has no effect
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(779) : error 017: undefined symbol \"RandomSpawn\"
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(779) : warning 215: expression has no effect
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(779) : error 001: expected token: \";\", but found \"]\"
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(779) : error 029: invalid expression, assumed zero
C:\\Users\\Ádám\\Desktop\\DW-V1.pwn(779) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
6 Errors.
[/pawn]

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
Spawn HELP!! :$
« Válasz #7 Dátum: 2011. Július 19. - 22:39:21 »
0 Show voters
Idézetet írta: mcdcadam date=1311099490\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"9706\" data-ipsquote-contentclass=\"forums_Topic
[pawn]
 SetSpawnInfo ( playerid, GetPlayerTeam ( playerid ), GetPlayerSkin ( playerid ), RandomSpawn [ rand ] [ 0 ], RandomSpawn [ rand ] [ 1 ], RandomSpawn [ rand ] [ 2 ],RandomSpawn [ rand ] [ 3 ],RandomSpawn [ rand ] [ 4 ],RandomSpawn [ rand ] [ 5 ],RandomSpawn [ rand ] [ 6 ],RandomSpawn [ rand ] [ 7 ],RandomSpawn [ rand ] [ 8 ],RandomSpawn [ rand ] [ 9 ], Angle, 0, 0, 0, 0, 0, 0  );
[/pawn]
Miért írtad 0-tól 9-ig a véletlenszerû értékeket? Nem értem..
http://sampforum.hu/index.php?topic=8808.0

Spawn HELP!! :$
« Válasz #8 Dátum: 2011. Július 20. - 06:58:29 »
0 Show voters
Ronii
Szeretném megkérdezni hogy esetleg össze tudnád nekem rakni a Random Spawn scriptet?
Nagyon nem értek a scripteléshez... :(
Elõre is köszönöm :angel:

Spawn HELP!! :$
« Válasz #9 Dátum: 2011. Július 20. - 09:49:15 »
+1 Show voters
[pawn]#include <a_samp>
new Float:RandomSpawn[10][3] =
{
{1253.9523,-813.0944,84.1478},
{-1989.9164,205.9039,27.6799},
{2782.3008,-2009.5143,13.5547},
{2327.1885,1417.5101,42.8203},
{1993.5059,-2316.2561,13.5469},
{1319.7286,1260.2727,10.8203},
{-1673.5229,-162.0981,14.1484},
{-325.1331,1533.0276,75.3594},
{1395.9432,705.1171,10.8203},
{-2406.5579,-595.5874,132.6484}
};
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerSpawn(playerid)
{
    new const rand = random(sizeof(RandomSpawn));
SetPlayerPos( playerid, RandomSpawn[ rand ] [ 0 ], RandomSpawn[ rand ] [ 1 ], RandomSpawn[ rand ] [ 2 ] );
return 1;
}
[/pawn]
Tessék!
Ha nem jó au OnPlayerPos-nél a teleportálás próbáld meg átrakni az OnPlayerRequestClass-hoz,de elméletileg mûködnie kell,mert én is OnPlayerSawn-nal használom!

Spawn HELP!! :$
« Válasz #10 Dátum: 2011. Július 20. - 10:10:05 »
0 Show voters
kadaradam NAGYON KÖSZÖNÖM sokat segítettél hibátlanul müködik ^-^ :angel: ;)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal