Re: New SA-MP callbacks! -
Logic_ - 18.07.2016
Quote:
Originally Posted by PawnHunter
Use crashdetect and post crash log here.
|
Do you think that Emmet is going to reply? He has left SA-MP and I myself can do debugging and can use crashdetect. I am already developing a include for myself using his include's code and testing it.
Re: New SA-MP callbacks! -
iKarim - 18.07.2016
Of course no, you said your server crashing because of this include, that never happened to me so I wanted to know what's happening or causing such crash..
Re: New SA-MP callbacks! -
DRIFT_HUNTER - 18.07.2016
Quote:
Originally Posted by BoneBreaker
Hey Emmet_ can you add more functions?
|
What would you like to see?
Re: New SA-MP callbacks! -
Logic_ - 18.07.2016
Quote:
Originally Posted by BoneBreaker
Hey Emmet_ can you add more functions?
|
Emmet has left SA-MP.
Re: New SA-MP callbacks! -
rt-2 - 29.03.2017
Quote:
Originally Posted by Emmet_
Code examples
pawn Код:
public OnPlayerUseGarage(playerid, type) { if(type == GARAGE_PAYNSPRAY) { SendClientMessage(playerid, COLOR_WHITE, "You have been charged $100 for respraying your vehicle."); PlayerInfo[playerid][pMoney] -= 100; } else if(type == GARAGE_BOMBSHOP) { SendClientMessage(playerid, COLOR_WHITE, "You have been charged $500 for using the bomb shop."); PlayerInfo[playerid][pMoney] -= 500; } return 1; }
|
That's
pawn Код:
public OnPlayerUseGarage(playerid, vehicleid, type)
{
if(type == GARAGE_PAYNSPRAY)
{
SendClientMessage(playerid, COLOR_WHITE, "You have been charged $100 for respraying your vehicle.");
PlayerInfo[playerid][pMoney] -= 100;
}
else if(type == GARAGE_BOMBSHOP)
{
SendClientMessage(playerid, COLOR_WHITE, "You have been charged $500 for using the bomb shop.");
PlayerInfo[playerid][pMoney] -= 500;
}
return 1;
}
" vehicleid," missing
Re: New SA-MP callbacks! -
Zorono - 24.05.2017
please help
Код:
return CB_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid, bodypart); // callbacks.inc(1103) : warning 202: number of arguments does not match definition
forward CB_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart); // callbacks.inc(1331) : error 025: function heading differs from prototype
Respuesta: Re: New SA-MP callbacks! -
Eistein - 24.05.2017
Quote:
Originally Posted by Zorono
please help
Код:
return CB_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid, bodypart); // callbacks.inc(1103) : warning 202: number of arguments does not match definition
forward CB_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart); // callbacks.inc(1331) : error 025: function heading differs from prototype
|
Please not post 2014 threads
Re: Respuesta: Re: New SA-MP callbacks! -
Zorono - 24.05.2017
Quote:
Originally Posted by Eistein
Please not post 2014 threads 
|
1- iam not only the member who had bumbed this thread so don't comment useless comments
2- iam just asking for help
Re: New SA-MP callbacks! -
RxErT - 24.05.2017
Quote:
Originally Posted by Zorono
please help
Код:
return CB_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid, bodypart); // callbacks.inc(1103) : warning 202: number of arguments does not match definition
forward CB_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart); // callbacks.inc(1331) : error 025: function heading differs from prototype
|
I think you have to download SAMP 0.3.7 Client Pack again and the updated one with a_samp to let it work
Re: New SA-MP callbacks! -
Zorono - 24.05.2017
Quote:
Originally Posted by RxErT
I think you have to download SAMP 0.3.7 Client Pack again and the updated one with a_samp to let it work
|
tried this method but didn't work

please help
Note: not the client pack its windows pack
Re: New SA-MP callbacks! -
RxErT - 24.05.2017
Quote:
Originally Posted by Zorono
tried this method but didn't work  please help
Note: not the client pack its windows pack
|
or maybe this include is outdated and it won't work with newer samp update
Re: New SA-MP callbacks! -
DRIFT_HUNTER - 24.05.2017
My guess is that its a bit outdated, i will check it later (unless i forget) but it should work with 0.3.7 if functions are updated (missing arguments are added)
EDIT: Just checked include, it compiles fine, examples filterscript is a bit outdated from include, but include is up to date for 0.3.7 from what i can see. Im to lazy to test it in game, but if it compiles it should work since Emmet knew what he was doing.
Re: New SA-MP callbacks! -
Zorono - 24.05.2017
Quote:
Originally Posted by DRIFT_HUNTER
My guess is that its a bit outdated, i will check it later (unless i forget) but it should work with 0.3.7 if functions are updated (missing arguments are added)
EDIT: Just checked include, it compiles fine, examples filterscript is a bit outdated from include, but include is up to date for 0.3.7 from what i can see. Im to lazy to test it in game, but if it compiles it should work since Emmet knew what he was doing.
|
got the same errors.... check attachments
Re: Respuesta: Re: New SA-MP callbacks! -
rt-2 - 25.05.2017
Quote:
Originally Posted by Eistein
Please not post 2014 threads 
|
Why if it's the right place to post?
Re: New SA-MP callbacks! -
RxErT - 25.05.2017
Quote:
Originally Posted by Zorono
got the same errors.... check attachments
|
The meant in the picture and the version of this include is outdated and much different with 0.3.7 version