zcmd to dcmd help
#1

hi i want to no what the best way to convert zcmd to dcmd as most of my commands are dcmd so if will be easyer to convert to dcmd not zcmd i know zcmd is better but if will take to much work to get all commands from dcmd to zcmd thx
Reply
#2

Actually converting dcmd to zcmd is easier.

Just replace this

pawn Код:
dcmd_somecommand(playerid, params[])
with
pawn Код:
CMD:somecommand(playerid, params[])
and delete these lines from OnPlayerCommandText

pawn Код:
dcmd(somecommand,11,cmdtext);
Reply
#3

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Actually converting dcmd to zcmd is easier.

Just replace this

pawn Код:
dcmd_somecommand(playerid, params[])
with
pawn Код:
CMD:somecommand(playerid, params[])
and delete these lines from OnPlayerCommandText

pawn Код:
dcmd(somecommand,11,cmdtext);
i have over 150 commands in dcmd thats why i need to convert the rest to dcmd
Reply
#4

Then still converting to ZCMD is really easy, just do this:

CTRL+H in the first field you type: dcmd_
In the second field you type CMD:

Then you press Find and replace. When it's finished go to OnPlayerCommandText and delete the lines said in MadeMan's post. Make sure you backup your script incase something goes wrong.
Reply
#5

Quote:
Originally Posted by playbox12
Посмотреть сообщение
Then still converting to ZCMD is really easy, just do this:

CTRL+H in the first field you type: dcmd_
In the second field you type CMD:

Then you press Find and replace. When it's finished go to OnPlayerCommandText and delete the lines said in MadeMan's post. Make sure you backup your script incase something goes wrong.
ya i did that but it just crashed lol

im trying to convert Lux Admin and i need to convert that but when i did what MadeMan said and it crashes the program
Reply
#6

i now get the errors

C:\Users\Joe\Desktop\new samp\filterscripts\LuxAdmin.pwn(287 : error 029: invalid expression, assumed zero
C:\Users\Joe\Desktop\new samp\filterscripts\LuxAdmin.pwn(287 : error 029: invalid expression, assumed zero
C:\Users\Joe\Desktop\new samp\filterscripts\LuxAdmin.pwn(2879) : warning 209: function "cmd_spawnplayer" should return a value
C:\Users\Joe\Desktop\new samp\filterscripts\LuxAdmin.pwn(4721) : error 029: invalid expression, assumed zero
C:\Users\Joe\Desktop\new samp\filterscripts\LuxAdmin.pwn(4721) : error 029: invalid expression, assumed zero
C:\Users\Joe\Desktop\new samp\filterscripts\LuxAdmin.pwn(4722) : warning 209: function "cmd_warp" should return a value
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)