SA-MP Forums Archive
undefined symbol - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefined symbol (/showthread.php?tid=570500)



undefined symbol - izeatfishz - 10.04.2015

Код:
CMD:disablecollisions(playerid, params[])
{
    new targetid, tname[MAX_PLAYER_NAME+1], pname[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, pname, sizeof(pname)), GetPlayerName(targetid, tname, sizeof(tname));
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "That player isn't connected.");
    if(pInfo[playerid][Admin] != 6) SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER:{FFFFFF} Yeah.. no..");
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /disablecollisions [id] ");
	DisableRemoteVehicleCollisions();
	return 1;
}
Код:
x\Desktopx\gamemodes\core.pwn(3306) : error 017: undefined symbol "DisableRemoteVehicleCollisions"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: undefined symbol - KiM0Ro - 10.04.2015

new DisableRemoteVehicleCollisions[MAX_PLAYERS]; Or you need to make a function for it,hope i helped you


Re: undefined symbol - izeatfishz - 10.04.2015

Quote:
Originally Posted by KiM0Ro
Посмотреть сообщение
new DisableRemoteVehicleCollisions[MAX_PLAYERS]; Or you need to make a function for it,hope i helped you
Tried that, and it's a samp 0.3.7 function..


Re: undefined symbol - Toxik - 10.04.2015

pawn Код:
new DisableRemoteVehicleCollisions[MAX_VEHICLES];
tryed it ?


Re: undefined symbol - Konstantinos - 10.04.2015

You're trying to compile it with not the updated include files came with 0.3.7 so re-download the package and update the files.

Quote:
Originally Posted by KiM0Ro
Посмотреть сообщение
new DisableRemoteVehicleCollisions[MAX_PLAYERS]; Or you need to make a function for it,hope i helped you
Quote:
Originally Posted by Toxik
Посмотреть сообщение
pawn Код:
new DisableRemoteVehicleCollisions[MAX_VEHICLES];
tryed it ?
https://sampwiki.blast.hk/wiki/DisableRe...icleCollisions


Re: undefined symbol - izeatfishz - 10.04.2015

Код:
C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(3309) : error 012: invalid function call, not a valid address
C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(3309) : warning 215: expression has no effect
C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(3309) : warning 215: expression has no effect
C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(3309) : error 001: expected token: ";", but found ")"
C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(3309) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(3309) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: undefined symbol - izeatfishz - 10.04.2015

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
You're trying to compile it with not the updated include files came with 0.3.7 so re-download the package and update the files.





https://sampwiki.blast.hk/wiki/DisableRe...icleCollisions
Yeah, I'm using 0.3.7


Re: undefined symbol - Konstantinos - 10.04.2015

Just in case, re-download the package for 0.3.7 RC3 and update the include and executable files.
Run pawno.exe and open ServerFile (make sure you're on the same main folder and you're not running any other editor which uses the older versions from includes). Re-compile and let's see.

The function is a native in a_players include file:
pawn Код:
native DisableRemoteVehicleCollisions(playerid, disable);