SA-MP Forums Archive
ZCMD help! - 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)
+--- Thread: ZCMD help! (/showthread.php?tid=303820)



ZCMD help! - Ld Est Ld - 15.12.2011

Okei, I have a question.

Why hasn't these characters allowed: цдьх

Example:

CMD:kдkдkцц

It's compiling errors.


Re: ZCMD help! - adios1 - 15.12.2011

Maybe because its unknown character? or unsupported character


Re: ZCMD help! - Ld Est Ld - 15.12.2011

is it somehow to do that it's supports it?


Re: ZCMD help! - adios1 - 15.12.2011

but it works for me.. can you post the script line?


Re: ZCMD help! - Ld Est Ld - 15.12.2011

Here's the half of the code!
pawn Код:
CMD:vдrav(playerid, params[]) {
    if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1) {
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 1544.6, -1630.8, 13.0)) switch(LSPDGates[0][1]) {
            case 0: {
                SetDynamicObjectRot(LSPDGates[0][0],0.0, 0, 90.0);
                LSPDGates[0][1] = 1;
            }
            case 1: {
                SetDynamicObjectRot(LSPDGates[0][0],0.0, 90.0, 90.0);
                LSPDGates[0][1] = 0;
            }
        }
And here's the compiling error.
pawn Код:
I:\Users\Martin\Desktop\San Andreas\03d Server\Windows-Server\Windows-Server\gamemodes\vx-rp.pwn(8344) : error 001: expected token: "(", but found "д"
I:\Users\Martin\Desktop\San Andreas\03d Server\Windows-Server\Windows-Server\gamemodes\vx-rp.pwn(8344) : error 001: expected token: ";", but found "-identifier-"
I:\Users\Martin\Desktop\San Andreas\03d Server\Windows-Server\Windows-Server\gamemodes\vx-rp.pwn(8344) : error 001: expected token: ";", but found "д"
I:\Users\Martin\Desktop\San Andreas\03d Server\Windows-Server\Windows-Server\gamemodes\vx-rp.pwn(8344) : fatal error 107: too many error messages on one line
The 8344 line is
pawn Код:
CMD:vдrav(playerid, params[]) {



Re: ZCMD help! - adios1 - 15.12.2011

Okay. Take your time


Re: ZCMD help! - Ld Est Ld - 15.12.2011

posted!


Re: ZCMD help! - adios1 - 15.12.2011

I'm afraid you must make it as a filterscript


Re: ZCMD help! - adios1 - 15.12.2011

try making it Filterscript...

pawn Код:
#include <a_samp>

#include <zcmd>

#if defined FILTERSCRIPT

CMD:vдrav(playerid, params[]) {
    if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1) {
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 1544.6, -1630.8, 13.0)) switch(LSPDGates[0][1]) {
            case 0: {
                SetDynamicObjectRot(LSPDGates[0][0],0.0, 0, 90.0);
                LSPDGates[0][1] = 1;
            }
            case 1: {
                SetDynamicObjectRot(LSPDGates[0][0],0.0, 90.0, 90.0);
                LSPDGates[0][1] = 0;
                return 1;
            }
        }
       
#endif