SA-MP Forums Archive
[Include] Callbackz (Beta) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Callbackz (Beta) (/showthread.php?tid=278150)

Pages: 1 2


Respuesta: Callbackz (Beta) - TheChaoz - 22.08.2011

y have not scripted YSI as you can see, and i haven't that errors, here i left you a link with my YSI version:
Link


Re: Respuesta: Callbackz (Beta) - NeyMar96 - 22.08.2011

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
y have not scripted YSI as you can see, and i haven't that errors, here i left you a link with my YSI version:
Link
New error:
PHP код:
pawno\include\YSI\y_hooks.inc(1572) : error 021symbol already defined"OnPlayerLeaveCheckpoint"
pawno\include\YSI\y_hooks.inc(3129) : warning 235: public function lacks forward declaration (symbol "OnPlayerLogin")
pawno\include\YSI\y_hooks.inc(3191) : warning 235: public function lacks forward declaration (symbol "OnPlayerLogout")
pawno\include\Callbackz.inc(480) : error 017undefined symbol "rondom"
pawno\include\Callbackz.inc(485) : error 017undefined symbol "Plate"
pawno\include\Callbackz.inc(494) : error 017undefined symbol "rondom"
pawno\include\Callbackz.inc(499) : error 017undefined symbol "Plate"
gamemodes\lvdm.pwn(2439) : warning 219local variable "pHealth" shadows a variable at a preceding level
gamemodes
\lvdm.pwn(2439) : warning 219local variable "pArmour" shadows a variable at a preceding level
gamemodes
\lvdm.pwn(2441) : error 035argument type mismatch (argument 2)
gamemodes\lvdm.pwn(2442) : error 035argument type mismatch (argument 2)
gamemodes\lvdm.pwn(2451) : warning 213tag mismatch
gamemodes
\lvdm.pwn(2451) : warning 213tag mismatch
gamemodes
\lvdm.pwn(2439) : warning 203symbol is never used"pArmour"
gamemodes\lvdm.pwn(2439) : warning 203symbol is never used"pHealth"
lvdm.pwn(3180) : error 035argument type mismatch (argument 2)
lvdm.pwn(4542) : error 035argument type mismatch (argument 2)
gamemodes\lvdm.pwn(5743) : error 025: function heading differs from prototype
gamemodes
\lvdm.pwn(5744) : error 025: function heading differs from prototype
gamemodes
\lvdm.pwn(6949) : error 021symbol already defined"crossp"
gamemodes\lvdm.pwn(6958) : error 021symbol already defined"GetDistanceFromPointToLine"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
14 Errors




Respuesta: Callbackz (Beta) - TheChaoz - 22.08.2011

Код:
pawnoincludeYSIy_hooks.inc(3129) : warning 235: public function lacks forward declaration (symbol "OnPlayerLogin")
pawnoincludeYSIy_hooks.inc(3191) : warning 235: public function lacks forward declaration (symbol "OnPlayerLogout")
forward them.

Код:
pawnoincludeCallbackz.inc(480) : error 017: undefined symbol "rondom"
pawnoincludeCallbackz.inc(485) : error 017: undefined symbol "Plate"
pawnoincludeCallbackz.inc(494) : error 017: undefined symbol "rondom"
pawnoincludeCallbackz.inc(499) : error 017: undefined symbol "Plate"
download new version 1.1

Код:
gamemodeslvdm.pwn(2439) : warning 219: local variable "pHealth" shadows a variable at a preceding level
gamemodeslvdm.pwn(2439) : warning 219: local variable "pArmour" shadows a variable at a preceding level
gamemodeslvdm.pwn(2439) : warning 203: symbol is never used: "pArmour"
gamemodeslvdm.pwn(2439) : warning 203: symbol is never used: "pHealth"
as the script use pHeath, and pArmour, you have to define them with an other name.

Код:
gamemodeslvdm.pwn(2451) : warning 213: tag mismatch
gamemodeslvdm.pwn(2451) : warning 213: tag mismatch 
lvdm.pwn(3180) : error 035: argument type mismatch (argument 2)
lvdm.pwn(4542) : error 035: argument type mismatch (argument 2)
gamemodeslvdm.pwn(5743) : error 025: function heading differs from prototype
gamemodeslvdm.pwn(5744) : error 025: function heading differs from prototype
code?

Код:
gamemodeslvdm.pwn(6949) : error 021: symbol already defined: "crossp"
gamemodeslvdm.pwn(6958) : error 021: symbol already defined: "GetDistanceFromPointToLine"
these functions are already defined on my include, so delete them from ur script.


Re: Respuesta: Callbackz (Beta) - NeyMar96 - 23.08.2011

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
Код:
pawnoincludeYSIy_hooks.inc(3129) : warning 235: public function lacks forward declaration (symbol "OnPlayerLogin")
pawnoincludeYSIy_hooks.inc(3191) : warning 235: public function lacks forward declaration (symbol "OnPlayerLogout")
forward them.

Код:
pawnoincludeCallbackz.inc(480) : error 017: undefined symbol "rondom"
pawnoincludeCallbackz.inc(485) : error 017: undefined symbol "Plate"
pawnoincludeCallbackz.inc(494) : error 017: undefined symbol "rondom"
pawnoincludeCallbackz.inc(499) : error 017: undefined symbol "Plate"
download new version 1.1

Код:
gamemodeslvdm.pwn(2439) : warning 219: local variable "pHealth" shadows a variable at a preceding level
gamemodeslvdm.pwn(2439) : warning 219: local variable "pArmour" shadows a variable at a preceding level
gamemodeslvdm.pwn(2439) : warning 203: symbol is never used: "pArmour"
gamemodeslvdm.pwn(2439) : warning 203: symbol is never used: "pHealth"
as the script use pHeath, and pArmour, you have to define them with an other name.

Код:
gamemodeslvdm.pwn(2451) : warning 213: tag mismatch
gamemodeslvdm.pwn(2451) : warning 213: tag mismatch 
lvdm.pwn(3180) : error 035: argument type mismatch (argument 2)
lvdm.pwn(4542) : error 035: argument type mismatch (argument 2)
gamemodeslvdm.pwn(5743) : error 025: function heading differs from prototype
gamemodeslvdm.pwn(5744) : error 025: function heading differs from prototype
code?

Код:
gamemodeslvdm.pwn(6949) : error 021: symbol already defined: "crossp"
gamemodeslvdm.pwn(6958) : error 021: symbol already defined: "GetDistanceFromPointToLine"
these functions are already defined on my include, so delete them from ur script.
two erros:
PHP код:
pawno\include\YSI\y_hooks.inc(1512) : error 021symbol already defined"OnPlayerEnterCheckpoint"
pawno\include\YSI\y_hooks.inc(1572) : error 021symbol already defined"OnPlayerLeaveCheckpoint"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors




Respuesta: Callbackz (Beta) - TheChaoz - 23.08.2011

hmmm dno i don't have that error's and is not from this include. ask on YSI topic about them or search.


Re: Respuesta: Re: Callbackz (Beta) - Gamer_Z - 23.08.2011

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
if you have an other method please tell me and i'll implement it, but it's the only way i know (thx to JernejL)
For now I don't know any other method, maybe some weird textdraw which disconnects the player or something but anyway the end users should be informed about the dangers of your current reconnect function so they won't 'reaport' a bug or beg for help with it... while you cannot do anything at all.


Re: Callbackz (Beta) - TheArcher - 23.08.2011

Nice realease,very useful


Re: Callbackz (Beta) - NeyMar96 - 23.08.2011

How to check if the player left the AFK?


Respuesta: Re: Callbackz (Beta) - TheChaoz - 23.08.2011

Quote:
Originally Posted by NeyMar96
Посмотреть сообщение
How to check if the player left the AFK?
pawn Код:
IsPlayerAFK(playerid)



Re: Callbackz (Beta) - Michael@Belgium - 26.08.2011

Lol this is what i have when i include your include ... xD

Код:
D:\GTA\Police VS Terrorists\pawno\include\YSI\y_hooks.inc(918) : error 025: function heading differs from prototype
D:\GTA\Police VS Terrorists\pawno\include\Callbackz.inc(231) : error 025: function heading differs from prototype
D:\GTA\Police VS Terrorists\pawno\include\Callbackz.inc(547) : error 029: invalid expression, assumed zero
D:\GTA\Police VS Terrorists\pawno\include\foreach.inc(567) : warning 209: function "S@@_OnFilterScriptInit" should return a value
D:\GTA\Police VS Terrorists\pawno\include\YSI/y_hooks.inc(872) : error 025: function heading differs from prototype
D:\GTA\Police VS Terrorists\pawno\include\YSI/y_hooks.inc(908) : error 025: function heading differs from prototype
D:\GTA\Police VS Terrorists\pawno\include\YSI/y_hooks.inc(909) : error 021: symbol already defined: "S@@_OnPlayerInteriorChange"
D:\GTA\Police VS Terrorists\pawno\include\YSI/y_hooks.inc(910) : warning 213: tag mismatch
D:\GTA\Police VS Terrorists\pawno\include\YSI/y_hooks.inc(918) : error 025: function heading differs from prototype
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(295) : error 021: symbol already defined: "S@@_OnFilterScriptInit"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(349) : error 021: symbol already defined: "S@@_OnFilterScriptExit"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(355) : error 021: symbol already defined: "S@@_OnPlayerSpawn"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(367) : error 021: symbol already defined: "S@@_OnPlayerCommandText"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(1801) : error 021: symbol already defined: "S@@_OnDialogResponse"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2318) : error 021: symbol already defined: "S@@_OnVehicleSpawn"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2324) : error 021: symbol already defined: "S@@_OnPlayerStateChange"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2340) : error 021: symbol already defined: "S@@_OnPlayerExitVehicle"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2349) : error 021: symbol already defined: "S@@_OnPlayerConnect"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2370) : error 021: symbol already defined: "S@@_OnPlayerDisconnect"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2407) : error 021: symbol already defined: "S@@_OnPlayerDeath"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2412) : error 021: symbol already defined: "S@@_OnPlayerText"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2471) : error 021: symbol already defined: "S@@_OnPlayerEnterVehicle"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2476) : error 021: symbol already defined: "S@@_OnPlayerClickPlayer"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2490) : error 021: symbol already defined: "S@@_OnRconCommand"
D:\GTA\Police VS Terrorists\filterscripts\[MV]_cPanel.pwn(2788) : error 021: symbol already defined: "S@@_OnPlayerUpdate"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


23 Errors.



Re: Respuesta: Re: Callbackz (Beta) - Lorenc_ - 26.08.2011

Quote:
Originally Posted by Hiddos
Посмотреть сообщение


It uses the ban ip 'glitch'. Ban somebody's IP and he'll lose connection to the server. Unban his IP at OnPlayerDisconnect and he'll re-join.
Sorry a cow farted on me and I was brain washed.


Re: Callbackz (Beta) - TheArcher - 26.08.2011

Can you add natives in the include is more easy to remember the functions.


Respuesta: Callbackz (Beta) - TheChaoz - 06.09.2011

New version available.
Added some functions and the code was improved.


Re: Callbackz (Beta) - misho1 - 03.07.2012

Very Cooool Include Good Job!


Re: Callbackz (Beta) - Niko_boy - 03.07.2012

well done in releasing it ,
Many of functions included in this were unknown
Thanks for it