MoveObject +rep!
#1

pawn Код:
CMD:opengate(playerid, params[]);
{
        MoveObject(gate1, -505.29998779,2599.60009766,54.29999924,0.00000000,0.00000000,16.00000000, 2);
        MoveObject(gate, -505.29998779,2586.00000000,54.29999924,0.00000000,0.00000000,16.00000000, 2);
        SendClientMessage(playerid, 0xB4B5B7FF, "TutGate Opened");
        return 1;
    }
I got these errors

Quote:

C:\Users\Luca\Desktop\APRP GM\Server209 - Copia\gamemodes\ccrp.pwn(310 : error 055: start of function body without function header
C:\Users\Luca\Desktop\APRP GM\Server209 - Copia\gamemodes\ccrp.pwn(3112) : error 010: invalid function or declaration

+REP if fix!
Reply
#2

How the hell to you expect us to fix the errors without showing which line is which error?!
Anyway,
pawn Код:
CMD:opengate(playerid, params[])
{
[...]
}
Reply
#3

Might wanna learn to use ZCMD before making your own commands. I noticed you added a semicolon after
pawn Код:
CMD:opengate(playerid,params[])
which makes absolutely no sense at all.
Reply
#4

They're right, you NEVER need a semicolon at the end of your commands in ZCMD, simply do the following:

pawn Код:
CMD:opengate(playerid, params[])
{
        MoveObject(gate1, -505.29998779,2599.60009766,54.29999924,0.00000000,0.00000000,16.00000000, 2);
        MoveObject(gate, -505.29998779,2586.00000000,54.29999924,0.00000000,0.00000000,16.00000000, 2);
        SendClientMessage(playerid, 0xB4B5B7FF, "TutGate Opened");
        return 1;
}
And indent your code!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)