SA-MP Forums Archive
can i ! - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: can i ! (/showthread.php?tid=271676)



can i ! - [bs]_lancer - 25.07.2011

my friend told me that i can use ZCDM commands and STRCMP commands in 1 script!

can i know how ?

cuz in my pwn file i have 4 commands with ZCMD and 10 commands with STRCMP
if u used
#include <zcmd>
zcmd commands work and strcmp comands dont
and if i removed #include <zcmd>
i will get 5 warning cuz of the 5 commands with Zcmd but in this case strcmp commands can work

so .. how i can make them working together ?! zcmd commands and strcmp ^


Re: can i ! - saiberfun - 25.07.2011

wrong section dude..


Re: can i ! - [bs]_lancer - 25.07.2011

noticed xP

well .. atleast answer my question


Re: can i ! - SiJ - 25.07.2011

I am not sure, but try putting your strcmp commands under OnPlayerCommandReceived(playerid, cmdtext[]) callback.


Re: can i ! - Horrible - 25.07.2011

not five warning but five error it say "[command]already definied"
as i know before u can only use one of them


Re: can i ! - [bs]_lancer - 25.07.2011

SIJ u r epic

thats working more than great.

btw .. another question ..
im using this veh as drugs dealer trucks

AddStaticVehicle(456,2357.5625,-662.0535,128.5024,269.5684,91,63); //
AddStaticVehicle(456,2386.9136,-633.7609,126.3895,149.7053,102,65); //
AddStaticVehicle(499,2361.1399,-645.2669,128.2051,357.1859,109,32); //
AddStaticVehicle(499,2364.9492,-646.1619,127.8034,0.7404,112,32); //

but i dont want any one to enter them! even me i want to lock them from the script. How i can do it ?


Re: can i ! - Rafa - 25.07.2011

dude u can't use zcmd and strcmp cause this two are same..
u need to convert all ur strcmp commands in zcmd and will work cool...
btw and im using zcmd for all commands.


Re: can i ! - iPLEOMAX - 25.07.2011

Quote:
Originally Posted by [bs]_lancer
Посмотреть сообщение
i dont want any one to enter them! even me i want to lock them from the script. How i can do it ?
Use: SetVehicleParamsEx

Quote:
Originally Posted by Rafa
Посмотреть сообщение
dude u can't use zcmd and strcmp cause this two are same..
u need to convert all ur strcmp commands in zcmd and will work cool...
btw and im using zcmd for all commands.
"cmdtext" both are present in OnPlayerCommandText and OnPlayerCommandRecieved.
So, just by placing all strcmp commands in the zcmd callback (recieved) will make it work correctly. (But it won't be as good as the original method, correct me if im wrong).


Re: can i ! - [bs]_lancer - 25.07.2011

Quote:
Originally Posted by Rafa
Посмотреть сообщение
dude u can't use zcmd and strcmp cause this two are same..
u need to convert all ur strcmp commands in zcmd and will work cool...
btw and im using zcmd for all commands.
but it works