C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(846) : error 021: symbol already defined: "OnPlayerStateChange"
bei dem 2 OnPlayerStateChange ist der eror kann mri jm das machen pls
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(LSPD); i++)
{
if(GetPlayerVehicleID(playerid)==LSPD[i])
{
if(GetPVarInt(playerid,"Fraktion")!=1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,ROT,"Dieses Fahrzeug gehört einer fraktion.");
}
}
}
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(ballascar); i++)
{
if(GetPlayerVehicleID(playerid)==ballascar[i])
{
if(GetPVarInt(playerid,"Fraktion")!=1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,LILA,"Dieses Fahrzeug gehört einer fraktion.");
}
}
}
}
return 1;
}