Hiho,
ich hab mal wieder angefangen mit scripten, und schon Fail ich wieder wo es nur geht.
ich wollte bei meinen script die Spawnstellen in ein Enumm packen, das klappt auch ganz gut, bis ich es in /login packe:
// Fraktionsspawn
else
{
SetSpawnInfo( playerid, 0, Skin(playerid), Fracspawn[PlayerInfo[playerid][fraktion]-1][s_x], Fracspawn[PlayerInfo[playerid][fraktion]-1][s_y], Fracspawn[PlayerInfo[playerid][fraktion]-1][s_z], Fracspawn[PlayerInfo[playerid][fraktion]-1][s_a], Fracspawn[PlayerInfo[playerid][fraktion]-1][w1], Fracspawn[PlayerInfo[playerid][fraktion]-1][w1_a], Fracspawn[PlayerInfo[playerid][fraktion]-1][w2], Fracspawn[PlayerInfo[playerid][fraktion]-1][w2_a], Fracspawn[PlayerInfo[playerid][fraktion]-1][w3], Fracspawn[PlayerInfo[playerid][fraktion]-1][w3_a]);
}
Die zeile vor Setspawninfo hat folgenden Error:
ZitatY:\Games\samp\gamemodes\test.pwn(1054) : error 075: input line too long (after substitutions)
falls man es braucht, hier noch die Variablen:
enum spawninfo
{
Float:s_x,
Float:s_y,
Float:s_z,
Float:s_a,
w1,
w1_a,
w2,
w2_a,
w3,
w3_a
}
new Fracspawn[][spawninfo] = {
{2282, 2425.9, 3.47, 0, 0, 0, 0, 0, 0, 0},
{1929.4421,741.1548,10.8203, 180, 0, 0, 0, 0, 0, 0},
{1453, 751, 11, 90, 0, 0, 0, 0, 0, 0},
{1606.9596, 1815.4419, 10.8203, 3.8502, 0, 0, 0, 0, 0, 0},
{1929.4421,741.1548,10.8203, 180, 0, 0, 0, 0, 0, 0},
{201.4541, 1858.1373, 13.1406, 314.4246, 0, 0, 0, 0, 0, 0}
};
ich hoffe jemand weiß eine lösung.
mfg