02.05.2014, 13:05
(
Последний раз редактировалось Guest4390857394857; 02.05.2014 в 14:21.
Причина: SOLVED
)
SOLVED -_-
new RandomSpawnArray[][4] = {
//{x,y,z,time}
{361.9560,2537.5532,19.6391,0},
{-2232,2325,8,12}
};
new rand = random(sizeof(RandomSpawnArray));
SetPlayerPos(playerid,RandomSpawnArray[rand][0],RandomSpawnArray[rand][1],RandomSpawnArray[rand][2]);
SetPlayerTime(playerid,RandomSpawnArray[rand][3]);
This works cool in my homehost, but after i upload to host,,
i get crashed again! Please help me someone! |
now i get new error bro,,
its locating one of my include! But i didn't use that include in my script! Код:
[10:07:22] [debug] Server crashed while executing Script1v34.amx [10:07:22] [debug] AMX backtrace: [10:07:22] [debug] #0 00000004 in ?? () at C:\Users\Shiv\Desktop\0.3z\pawno\include\float.inc:120 |
new Float: RandomSpawnArray[][4] =
{
{361.9560,2537.5532,19.6391},
{-2232.0,2325.0,8.0}
};
// OnPlayerSpawn:
new rand = random(sizeof (RandomSpawnArray));
SetPlayerPos(playerid, RandomSpawnArray[rand][0], RandomSpawnArray[rand][1], RandomSpawnArray[rand][2]);
SetPlayerTime(playerid, random(2) ? (0) : (12));
There are cases that the server gets crashed and the reason is unknown - some of them point at the float include (it's included in a_samp.inc so you actually use it) and it shows some of the operators (==, + etc).
I've read an old thread few months ago about similar problems and using some floating points numbers as integers caused that. So change them to: pawn Код:
I can't think of anything else that would cause such as problem. |