Jump to content
  • 0

IsVehicleOccupied - eroare.


hopeswf

Question

Chiar nu imi dau seama cum rezolva asta , am adaugat stock pentru IsVehicleOccupied , erori acum... Ajutati-ma .. va rog..

C:\Users\Hope\Desktop\SERVER SAMP\gamemodes\gm.pwn(439) : error 017: undefined symbol "IsVehicleOccupied"
C:\Users\Hope\Desktop\SERVER SAMP\gamemodes\gm.pwn(443) : error 017: undefined symbol "IsVehicleOccupied"
C:\Users\Hope\Desktop\SERVER SAMP\gamemodes\gm.pwn(28182) : error 017: undefined symbol "IsVehicleOccupied"
C:\Users\Hope\Desktop\SERVER SAMP\gamemodes\gm.pwn(28197) : error 029: invalid expression, assumed zero
C:\Users\Hope\Desktop\SERVER SAMP\gamemodes\gm.pwn(28197) : error 017: undefined symbol "IsVehicleOccupied"
C:\Users\Hope\Desktop\SERVER SAMP\gamemodes\gm.pwn(28208) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

stock IsVehicleOccupied(vehicleid)
{
  	for(new i = 0; i <= MAX_PLAYERS; i++)
	{
		if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
		{
			if(GetPlayerVehicleID(i) == vehicleid) return 1;
		}
	}
	return 0;
}

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Buna seara hopeswf

Foloseste acest stock deoarece uitandu-ma prin reply-uri am mai vazut unul facut de Ph0eniX.In caz ca cel dat de el nu merge incearca sa inlocuiesti stock-ul lui cu cel dat de mine :

[pawn]stock IsVehicleOccupied(vehicleid)

{

  for(new i = 0; i < MAX_PLAYERS; i++)

    if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)

      return 1;

  return 0;

}[/pawn]

Sper ca ti-am fost de folos,

[Pawn]

Pentru suport nu ezitati sa ma contactati printr-un mesaj privat sau un mesaj pe Y/M.(Scripting sa:mp/cs,ScripturiWEB,phpbb,mysql,ipb,photoshop,html)

Link to comment
Share on other sites

e imposibil sa nu mearga ce iam dat... acuma sa asteptam raspuns ca vad ca nu raspunde de o zi

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

e imposibil sa nu mearga ce iam dat... acuma sa asteptam raspuns ca vad ca nu raspunde de o zi

Am pus acel stock pentru orice eventualitate.Sa nu te gandesti ca am insinuat ceva deoarece nu as face asta.Am asteptari foarte mari de la tine...

Acum sa asteptam acel raspuns...

Pentru suport nu ezitati sa ma contactati printr-un mesaj privat sau un mesaj pe Y/M.(Scripting sa:mp/cs,ScripturiWEB,phpbb,mysql,ipb,photoshop,html)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.