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.
|
new DisableRemoteVehicleCollisions[MAX_PLAYERS]; Or you need to make a function for it,hope i helped you
|
new DisableRemoteVehicleCollisions[MAX_VEHICLES];
|
new DisableRemoteVehicleCollisions[MAX_PLAYERS]; Or you need to make a function for it,hope i helped you
|
|
pawn Код:
|
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.
|
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 |
native DisableRemoteVehicleCollisions(playerid, disable);