can i !
#1

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 ^
Reply
#2

wrong section dude..
Reply
#3

noticed xP

well .. atleast answer my question
Reply
#4

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

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

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 ?
Reply
#7

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.
Reply
#8

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).
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)