Hallo ich habe wiedermal ein problem und zwar ich habe natürlich das versucht mit dem tor alles hat geklappt bis außer eins k.A wo das sein könnte.
ZitatC:\Spiele\Grand Theft Auto San Andreas\gamemodes\marvin.pwn(92) : error 033: array must be indexed (variable "tor")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
die cods:
Code
//Yakuza
CreateObject(1300, 1479.6311035156, -1737.8607177734, 12.916790962219, 0, 0, 270);
CreateObject(970, 1502.8598632813, -1737.3638916016, 13.098356246948, 0, 0, 0);
CreateObject(970, 1496.6024169922, -1737.3582763672, 13.098356246948, 0, 0, 0);
CreateObject(970, 1491.5622558594, -1737.3035888672, 13.098356246948, 0, 0, 0);
CreateObject(970, 1484.8427734375, -1737.2468261719, 12.934293746948, 0, 0, 0);
CreateObject(970, 1475.4991455078, -1737.2939453125, 13.098356246948, 0, 0, 0);
CreateObject(970, 1468.3651123047, -1737.3479003906, 13.098356246948, 0, 0, 0);
CreateObject(970, 1461.8157958984, -1737.3386230469, 13.098356246948, 0, 0, 0);
CreateObject(970, 1455.6801757813, -1737.4102783203, 13.098356246948, 0, 0, 0);
CreateObject(638, 1481.4636230469, -1737.4265136719, 13.243908882141, 0, 0, 272);
CreateObject(638, 1488.1229248047, -1737.3096923828, 13.243908882141, 0, 0, 270);
CreateObject(718, 1810.6617431641, -1898.3372802734, 12.57802772522, 0, 0, 0);
CreateObject(718, 1810.4077148438, -1883.2043457031, 12.58350944519, 0, 0, 0);
CreateObject(3461, 1809.494140625, -1884.5675048828, 14.157852172852, 0, 0, 0);
CreateObject(3461, 1807.6927490234, -1884.5762939453, 13.984615325928, 0, 0, 0);
CreateObject(3461, 1805.72265625, -1884.5904541016, 13.983171463013, 0, 0, 0);
CreateObject(3461, 1811.4204101563, -1894.5960693359, 13.979985237122, 0, 0, 0);
CreateObject(3461, 1809.7565917969, -1894.9699707031, 13.979802131653, 0, 0, 0);
CreateObject(3461, 1808.1279296875, -1896.0363769531, 13.979281425476, 0, 0, 0);
CreateObject(3461, 1807.0826416016, -1897.6000976563, 13.978518486023, 0, 0, 0);
CreateObject(3461, 1806.6495361328, -1899.4167480469, 13.977631568909, 0, 0, 0);
CreateObject(3461, 1803.7598876953, -1884.53125, 14.153651237488, 0, 0, 0);
CreateObject(3461, 1801.5412597656, -1884.4897460938, 14.152026176453, 0, 0, 0);
CreateObject(1559, 1022.4176025391, -1121.2548828125, 23.891910552979, 0, 0, 0);
CreateObject(5816, 1031.6627197266, -1107.7047119141, 29.442874908447, 0, 0, 0);
tor=CreateObject(980, 972.81146240234, -1103.5596923828, 25.679641723633, 0, 0, 90);
CreateObject(986, 977.37567138672, -1097.9296875, 24.217464447021, 0, 0, 0);
CreateObject(986, 985.33605957031, -1097.9296875, 24.159294128418, 0, 0, 0);
CreateObject(986, 991.28466796875, -1097.9296875, 24.244403839111, 0, 0, 0);
CreateObject(986, 995.4375, -1089.7172851563, 24.263679504395, 0, 0, 90);
CreateObject(986, 995.4375, -1084.7935791016, 24.271492004395, 0, 0, 270);
CreateObject(986, 999.45135498047, -1080.7890625, 24.293476104736, 0, 0, 180);
CreateObject(986, 995.4375, -1093.9443359375, 24.347007751465, 0, 0, 268);
CreateObject(986, 1007.5141601563, -1080.7890625, 24.305473327637, 0, 0, 0);
CreateObject(986, 1015.5284423828, -1080.7890625, 24.336833953857, 0, 0, 0);
CreateObject(986, 1023.5133056641, -1080.7890625, 24.347133636475, 0, 0, 0);
CreateObject(986, 1031.490234375, -1080.7890625, 24.361991882324, 0, 0, 0);
CreateObject(986, 1039.51171875, -1080.7890625, 24.371925354004, 0, 0, 0);
CreateObject(986, 1044.0354003906, -1080.7890625, 24.262666702271, 0, 0, 0);
CreateObject(986, 1048.0859375, -1084.7817382813, 23.755596160889, 0, 0, 270);
CreateObject(986, 1048.0859375, -1092.7629394531, 23.985204696655, 0, 0, 270);
CreateObject(986, 1048.0859375, -1103.5778808594, 24.45135307312, 0, 0, 270);
CreateObject(986, 1048.0859375, -1098.056640625, 24.420680999756, 0, 0, 270);
CreateObject(3749, 972.76599121094, -1103.591796875, 28.764663696289, 0, 0, 270);
CreateObject(1559, 1004.1130981445, -1106.7335205078, 23.84924697876, 0, 0, 0);
CreateObject(3461, 1005.083984375, -1107.8848876953, 24.403137207031, 0, 0, 0);
CreateObject(3461, 1001.0106201172, -1107.9820556641, 24.403137207031, 0, 0, 0);
Alles anzeigen
Code
ocmd:auf(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,10,972.81146240234, -1103.5596923828, 25.679641723633))
{
if(isPlayerInFrakt(playerid,2))
{
MoveObject(tor[0],972.81146240234, -1103.5596923828, 25.679641723633-10,5);
return 1;
}
return SendClientMessage(playerid,ROT,"Du bist nicht in der Mafia.");
}
if(IsPlayerInRangeOfPoint(playerid,10,972.81146240234, -1103.5596923828, 25.679641723633))
{
if(isPlayerInFrakt(playerid,2))
{
MoveObject(tor[1],972.81146240234, -1103.5596923828, 25.679641723633-10,5);
return 1;
}
return SendClientMessage(playerid,ROT,"Du bist nicht in der Mafia.");
}
return SendClientMessage(playerid,ROT,"Nicht in der Nähe von einem Tor.");
}
Alles anzeigen
Code
ocmd:zu(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,10,972.81146240234, -1103.5596923828, 25.679641723633))
{
if(isPlayerInFrakt(playerid,2))
{
MoveObject(tor[0],972.81146240234, -1103.5596923828, 25.679641723633-10,5);
return 1;
}
return SendClientMessage(playerid,ROT,"Du bist nicht in der Mafia.");
}
if(IsPlayerInRangeOfPoint(playerid,10,972.81146240234, -1103.5596923828, 25.679641723633))
{
if(isPlayerInFrakt(playerid,2))
{
MoveObject(tor[1],972.81146240234, -1103.5596923828, 25.679641723633-10,5);
return 1;
}
return SendClientMessage(playerid,ROT,"Du bist nicht in der Mafia.");
}
return SendClientMessage(playerid,ROT,"Nicht in der Nähe von einem Tor.");
}
Alles anzeigen
so wenn einer das problem finden würde wäre echt nett sogesagt finde ich das problem natürlich wieder mal nicht-.-
MfG Chang