OnPlayerDisconnect problems
#1

Hi,

I'm getting these errors

Code:
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17549) : error 025: function heading differs from prototype
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17551) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17551) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17553) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17554) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17555) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17556) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17557) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17560) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17563) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17564) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17565) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17568) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17569) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17572) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17573) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17574) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17575) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17576) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17577) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17578) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17579) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17580) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17581) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17582) : error 017: undefined symbol "playerid"
C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17583) : error 017: undefined symbol "playerid"
Here is the piece of code in question

Code:
public OnPlayerDisconnect(playerid, reason)
{
	if(IsLoaded[playerid]) IsLoaded[playerid] = 0;
	//Speedos
	PlayerTextDrawDestroy(playerid,SpeedoText0);
	PlayerTextDrawDestroy(playerid,SpeedoText1);
	PlayerTextDrawDestroy(playerid,SpeedoText2);
	PlayerTextDrawDestroy(playerid,SpeedoText3);
	PlayerTextDrawDestroy(playerid,SpeedoText4);

	//Samsung Galaxy
	PlayerTextDrawDestroy(playerid,CalculatorTD2);

	//Random News
	PlayerTextDrawDestroy(playerid, ServerTips);
	PlayerTextDrawDestroy(playerid, MessagesTD);
	PlayerTextDrawDestroy(playerid, ServerBanner);

		//Radar
	PlayerTextDrawDestroy(playerid,RadarHud);
	PlayerTextDrawDestroy(playerid,SpeedAndModel);

	//Baitcar
	PlayerTextDrawDestroy(playerid, Textdraw0);
   	PlayerTextDrawDestroy(playerid, Textdraw1);
   	PlayerTextDrawDestroy(playerid, Textdraw2);
   	PlayerTextDrawDestroy(playerid, Textdraw3);
   	PlayerTextDrawDestroy(playerid, Textdraw4);
   	PlayerTextDrawDestroy(playerid, Textdraw5);
   	PlayerTextDrawDestroy(playerid, Textdraw6);
   	PlayerTextDrawDestroy(playerid, Textdraw7);
        PlayerTextDrawDestroy(playerid, Textdraw8);
  	PlayerTextDrawDestroy(playerid, Textdraw9);
   	PlayerTextDrawDestroy(playerid, Textdraw10);
   	PlayerTextDrawDestroy(playerid, Textdraw11);
   	PlayerTextDrawDestroy(playerid, Textdraw12);
	BaitMonitor[playerid] = 0;
	Pursuit[playerid] = 0;
	
 	DestroyDynamic3DTextLabel(PlayerInfo[playerid][aMeID]);
 	PlayerInfo[playerid][aMeStatus] =0;
	
	new activewep, activeammo;
	activewep = GetPVarInt(playerid, "activesling");
	activeammo = GetPVarInt(playerid, "activeslingammo");
I've tried so many things, but cannot wrap my head around it, hopefully someone can help, I will +rep you.
Reply


Messages In This Thread
OnPlayerDisconnect problems - by tonto125 - 04.11.2018, 14:47
Re: OnPlayerDisconnect problems - by TheToretto - 04.11.2018, 14:54
Re: OnPlayerDisconnect problems - by tonto125 - 04.11.2018, 14:59
Re: OnPlayerDisconnect problems - by TheToretto - 04.11.2018, 15:11
Re: OnPlayerDisconnect problems - by tonto125 - 04.11.2018, 15:14
Re: OnPlayerDisconnect problems - by v1k1nG - 04.11.2018, 16:40
Re: OnPlayerDisconnect problems - by TheToretto - 04.11.2018, 16:45
Re: OnPlayerDisconnect problems - by v1k1nG - 04.11.2018, 16:58
Re: OnPlayerDisconnect problems - by KinderClans - 04.11.2018, 17:01
Re: OnPlayerDisconnect problems - by IgrexolonO - 04.11.2018, 17:34
Re: OnPlayerDisconnect problems - by tonto125 - 04.11.2018, 19:11
Re: OnPlayerDisconnect problems - by v1k1nG - 04.11.2018, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)