undefined symbol
#1

Код:
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.
Reply
#2

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

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..
Reply
#4

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

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
Reply
#6

Код:
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.
Reply
#7

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
Reply
#8

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)