![]() |
#401 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2008
Location: RevolutionX
Posts: 1,905
Reputation: 162
|
![]()
For some reason the function CA_FindZ_For2DCoord(x,y,z); is not returning the ground Z level - its returning where the player IS.
Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_NO)) { if(IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) != 520) return 1; if(Players[playerid][carpetwait] == true) return GameTextForPlayer(playerid,"~r~Reloading...",800,3); new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); CA_FindZ_For2DCoord(x,y,z); CreateExplosion(x,y,z,11,3); CreateExplosion(x+3,y,z,11,3); CreateExplosion(x+6,y,z,11,3); CreateExplosion(x+8,y,z,11,3); Players[playerid][carpetwait] = true; SetTimerEx("CarpetAgain",12000,0,"d",playerid); new kill; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,3,x,y,z)) { SetPlayerHealth(i,0); kill++; } } if(kill > 0) { format(xstring,sizeof xstring,"[*&*] Your airstike got you %d kills!",kill); SendClientMessage(playerid,COLOR_YELLOW,xstring); SetPlayerScore(playerid,Players[playerid][Kills] + kill); Players[playerid][Kills] += kill; } } return 1; } |
![]() |
![]() |
![]() |
#402 |
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2012
Posts: 5,350
Reputation: 1195
|
![]()
You are not checking if any collision is found!
Code:
cell AMX_NATIVE_CALL ColAndreasNatives::CA_RayCastLine(AMX *amx, cell *params) { cell* addr[3]; // Adding a small value prevents a potential crash if all values are the same btVector3 Start = btVector3(btScalar(amx_ctof(params[1]) + 0.00001), btScalar(amx_ctof(params[2]) + 0.00001), btScalar(amx_ctof(params[3]) + 0.00001)); btVector3 End = btVector3(btScalar(amx_ctof(params[4])), btScalar(amx_ctof(params[5])), btScalar(amx_ctof(params[6]))); btVector3 Result; uint16_t Model = 0; if (collisionWorld->performRayTest(Start, End, Result, Model)) { //Get our adderesses for the last 3 amx_GetAddr(amx, params[7], &addr[0]); amx_GetAddr(amx, params[8], &addr[1]); amx_GetAddr(amx, params[9], &addr[2]); *addr[0] = amx_ftoc(Result.getX()); *addr[1] = amx_ftoc(Result.getY()); *addr[2] = amx_ftoc(Result.getZ()); return Model; } return 0; } |
![]() |
![]() |
![]() |
#403 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2008
Location: RevolutionX
Posts: 1,905
Reputation: 162
|
![]()
@Pottus:
I'm getting some errors. Code:
C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2026) : error 010: invalid function or declaration C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2031) : error 010: invalid function or declaration C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2036) : error 010: invalid function or declaration C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2039) : error 067: variable cannot be both a reference and an array (variable "addr") C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2040) : error 025: function heading differs from prototype C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2041) : error 025: function heading differs from prototype C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2043) : error 010: invalid function or declaration C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2047) : error 010: invalid function or declaration C:\Users\Justin\Documents\rxdm\gamemodes\war.pwn(2049) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Last edited by CJ101; 23/04/2017 at 08:53 PM. |
![]() |
![]() |
![]() |
#404 |
Banned
![]() Join Date: May 2017
Posts: 58
Reputation: 7
|
![]()
Hello, your Plugin isn't working it's giving me error Please help!
09:52:44] Loading plugin: ColAndreas.so [09:52:44] Failed (libBulletDynamics.so.2.83: cannot open shared object file: No such file or directory) |
![]() |
![]() |
![]() |
#405 | |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2009
Posts: 2,146
Reputation: 157
|
![]() Quote:
Use these version |
|
![]() |
![]() |
![]() |
#406 |
Big Clucker
![]() ![]() Join Date: Aug 2010
Posts: 178
Reputation: 3
|
![]()
Why am I getting "Pawno has stopped working.." whenever I try compiling with #include <colandreas>?
Those are my includes: Code:
#include <a_samp> #include <a_mysql> #include <xml> #include <streamer> #include <colandreas> #include <supporter> #include <timerfix> #include <sscanf2> #include <Pawn.CMD> #include <crashdetect> #include <dialogs> #include <log-plugin> #include <YSF> Last edited by ranme15; 02/07/2017 at 04:14 PM. |
![]() |
![]() |
![]() |
#407 |
Big Clucker
![]() ![]() Join Date: Feb 2012
Location: Poland
Posts: 189
Reputation: 33
|
![]()
Allright, this is going to be weird.
Using colandreas_static.so CA_Init(); freezes my linux server. BUT it doesn't freeze if StrickenKid's MySQL plugin is loaded. I have no idea what's the connection between the two, but it's the only way to run ColAndreas for me. http://forum.sa-mp.com/showpost.php?...8&postcount=10 |
![]() |
![]() |
![]() |
#408 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2015
Location: Next to Oblivion (Kalcor's place)
Posts: 1,338
Reputation: 236
|
![]()
Why are you using StrickenKid's MySQL plugin, I think it's outdated and not updated anymore.
|
![]() |
![]() |
![]() |
#409 |
Big Clucker
![]() ![]() Join Date: Feb 2012
Location: Poland
Posts: 189
Reputation: 33
|
![]()
I don't use it. Just without it loaded CA_Init(); freezes my server.
|
![]() |
![]() |
![]() |
#410 |
Little Clucker
![]() Join Date: Jan 2017
Posts: 25
Reputation: 0
|
![]()
Great plugin, and it's better than MapAndreas
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ColAndreas - (Released) | Pottus | Plugin Development | 415 | 19/08/2015 12:31 AM |
No veh collision vs vehicles with collision issue | Kar | Scripting Help | 5 | 10/05/2015 11:08 PM |
ColAndreas | Pottus | Screenshots and Videos | 73 | 17/12/2014 08:32 PM |
Collision Detection (Plugin) | Deduction | Scripting Help | 0 | 27/12/2013 04:24 AM |
Collision Detection? | NumbSkull | Scripting Help | 4 | 13/11/2012 03:27 AM |