Hallo Leute,
ich bekomme solche komischen error:
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(942) : error 010: invalid function or declaration
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(944) : error 010: invalid function or declaration
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(945) : error 010: invalid function or declaration
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(954) : error 010: invalid function or declaration
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(963) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Eig. darf da ja nichts falsch sein. Bitte guckt ma durch
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new v = GetPlayerVehicleID(playerid);
if(IsABoat(v))
{
if(pInfo[playerid][pBoatlic] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Du hast keine Bootschein");
RemovePlayerFromVehicle(playerid);
}
}
else if(IsAPlane(v))
{
if(pInfo[playerid][pFlylic] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Du hast keinen Flugschein !");
RemovePlayerFromVehicle(playerid); }
}
}
else
{
if(pInfo[playerid][pCarlic] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Du hast keinen Führerschein !");
RemovePlayerFromVehicle(playerid); }
}
}
if(IsACopCar(v)) <----- Zeile 942
{
if(IsACop(playerid)) { } <--- 944
else { RemovePlayerFromVehicle(playerid); } <-- 945
}
TextDrawShowForPlayer(playerid,TachoBox);
TextDrawShowForPlayer(playerid,Textdraw3[playerid]);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
TextDrawShowForPlayer(playerid,Textdraw6[playerid]);
}
if(oldstate == PLAYER_STATE_DRIVER) <-- 955
{
TextDrawHideForPlayer(playerid,TachoBox);
TextDrawHideForPlayer(playerid,Textdraw3[playerid]);
TextDrawHideForPlayer(playerid,Textdraw4);
TextDrawHideForPlayer(playerid,Textdraw5);
TextDrawHideForPlayer(playerid,Textdraw6[playerid]);
}
return 1; <-- letzter error
}