Warum die Error:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys, pickupid)//hier
{
if(newkeys & 16)
{
if(IsPlayerInRangeOfPoint(playerid,2,-2133.1331,1213.7354,47.2734)) // Schwarzmarkt enter
{
SetPlayerPos(playerid,-2132.9165,1212.0477,1047.3760);
SetPlayerInterior(playerid,1);
}
else if(IsPlayerInRangeOfPoint(playerid,2,-2132.9165,1212.0477,1047.3760)) // Schwarzmarkt exit
{
SetPlayerPos(playerid,-2133.1331,1213.7354,47.27343);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
if(newkeys & 16)
{
for(new h = 0; h < sizeof(AutomatikPortInfo); h++){
if(pickupid == AutomatikPortInfo[h][APAusgangPickup] && PortedTimer[playerid] == 0 && GetPlayerVirtualWorld(playerid) == AutomatikPortInfo[h][APVirtualWorld]){
SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, AutomatikPortInfo[h][APEingangX], AutomatikPortInfo[h][APEingangY], AutomatikPortInfo[h][APEingangZ]);
SetPlayerVirtualWorld(playerid, 0); PortedTimer[playerid] = 5; PlayerInfo[playerid][pLocal] = -1;
return 1;
}
if(pickupid == AutomatikPortInfo[h][APEingangPickup] && PortedTimer[playerid] == 0){
SetPlayerInterior(playerid, AutomatikPortInfo[h][APInterior]);
SetPlayerPos(playerid, AutomatikPortInfo[h][APAusgangX], AutomatikPortInfo[h][APAusgangY], AutomatikPortInfo[h][APAusgangZ]); SetPlayerVirtualWorld(playerid, AutomatikPortInfo[h][APVirtualWorld]); PortedTimer[playerid] = 5; PlayerInfo[playerid][pLocal] = AutomatikPortInfo[h][APLocation];
return 1;
}}
error 025: function heading differs from prototype