Hallo ihr Brot-Fischer,
Ich habe ein Problem mit meinen SFPD Toren. Sie sollen automatisch aufgehen sobald man in die nähe kommt, aber das tuhen sie anscheinend nicht:
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, -1572.197388, 658.782104, 6.921752) && OpenGate[i] == 0)
{
MoveStreamObject(pdschranke1, -1572.208130, 658.849854, 6.837374);
OpenGate[i] = 1;
}
else if(!PlayerToPoint(10.0, i, -1572.197388, 658.782104, 6.921752) && OpenGate[i] == 1)
{
MoveStreamObject(pdschranke1, -1572.197388, 658.782104, 6.921752);
OpenGate[i] = 0;
}
}
}
public CheckGate2()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i,-1701.425781, 687.623108, 24.560650) && OpenGate2[i] == 0)
{
MoveStreamObject(pdschranke2, -1701.387207, 687.550293, 24.692066);
OpenGate2[i] = 1;
}
else if(!PlayerToPoint(10.0, i, -1701.425781, 687.623108, 24.560650) && OpenGate2[i] == 1)
{
MoveStreamObject(pdschranke2, -1701.425781, 687.623108, 24.560650);
OpenGate2[i] = 0;
}
}
}
public CheckGate3()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, -1637.027710, 688.334351, 8.960892) && OpenGate3[i] == 0)
{
MoveStreamObject(pdgate1, -1644.109497, 688.328857, 8.960892);
MoveStreamObject(pdgate2, -1618.996826, 688.345581, 8.960892);
OpenGate3[i] = 1;
}
else if(!PlayerToPoint(10.0, i, -1637.027710, 688.334351, 8.960892) && OpenGate3[i] == 1)
{
MoveStreamObject(pdgate1, -1637.027710, 688.334351, 8.960892);
MoveStreamObject(pdgate2, -1625.526001, 688.346252, 8.960892);
OpenGate3[i] = 0;
}
}
}
Warnings bekomme ich folgende:
D:\Spiele\GTA San Andreas\GTA SA\gamemodes\SFRoleplay.pwn(27090) : warning 202: number of arguments does not match definition
D:\Spiele\GTA San Andreas\GTA SA\gamemodes\SFRoleplay.pwn(27095) : warning 202: number of arguments does not match definition
D:\Spiele\GTA San Andreas\GTA SA\gamemodes\SFRoleplay.pwn(27108) : warning 202: number of arguments does not match definition
D:\Spiele\GTA San Andreas\GTA SA\gamemodes\SFRoleplay.pwn(27113) : warning 202: number of arguments does not match definition
D:\Spiele\GTA San Andreas\GTA SA\gamemodes\SFRoleplay.pwn(27127) : warning 202: number of arguments does not match definition
D:\Spiele\GTA San Andreas\GTA SA\gamemodes\SFRoleplay.pwn(27128) : warning 202: number of arguments does not match definition
D:\Spiele\GTA San Andreas\GTA SA\gamemodes\SFRoleplay.pwn(27133) : warning 202: number of arguments does not match definition
D:\Spiele\GTA San Andreas\GTA SA\gamemodes\SFRoleplay.pwn(27134) : warning 202: number of arguments does not match definition
Ich hoffe ihr könnt mir irgendwie helfen.
Mit freundlichen Grüßen,
Marc_Sway