invalid function or declaration and Prototype Help Please :C
#1

Ok im noob at scripting and this keeps happening to my script when ever i compile it
(Compile Thingy)
C:\Users\Unknown\Desktop\Grand Theft Auto San Andreas\Roleplay\gamemodes\rp.pwn(6317) : error 010: invalid function or declaration
C:\Users\Unknown\Desktop\Grand Theft Auto San Andreas\Roleplay\gamemodes\rp.pwn(6321) : error 010: invalid function or declaration
C:\Users\Unknown\Desktop\Grand Theft Auto San Andreas\Roleplay\gamemodes\rp.pwn(6323) : error 010: invalid function or declaration
C:\Users\Unknown\Desktop\Grand Theft Auto San Andreas\Roleplay\gamemodes\rp.pwn(6327) : error 010: invalid function or declaration


(Pawno Code)
6316|}
6317| if(strcmp(cmd, "/opengate, true) == 0) {
6318|{
6319| MoveObject(Gate, 1590, -1638, 8.8999996185303, 1);
6320| // That will move our gate at relatively low speed: 3
6321| return 0;
6322|}
6323| if(strcmp(cmd, "/closegate, true) == 0) {
6324|{
6325| MoveObject(Gate, 1590, -1638, 15.199999809265, 1);
6326| // That will move our gate at relatively low speed: 3
6327| return 0;
6328|}
PLEASE HELP :C IM VERY NOOB
Reply
#2

pawn Код:
if(strcmp(cmd, "/opengate", true) == 0)

{
    MoveObject(Gate, 1590, -1638, 8.8999996185303, 1);
    // That will move our gate at relatively low speed: 3
    return 1;
}
    if(strcmp(cmd, "/closegate", true) == 0)
{
    MoveObject(Gate, 1590, -1638, 15.199999809265, 1);
    // That will move our gate at relatively low speed: 3
    return 1;
}
You missed ending quotes.
Reply
#3

Thanks
Reply
#4

pawn Код:
if(strcmp(cmd, "/opengate", true) == 0)
{
MoveObject(Gate, 1590, -1638, 8.8999996185303, 1);
// That will move our gate at relatively low speed: 3
return 1;
}
if(strcmp(cmd, "/closegate", true) == 0)
{
MoveObject(Gate, 1590, -1638, 15.199999809265, 1);
// That will move our gate at relatively low speed: 3
return 1;
}
@Edit, sorry, the user reply very faast!
Reply
#5

I Tried Both And They Both Didnt Work :CC Hard Scripting And Making Gates Move SAD :CCCCCC

Thanks Though
Reply
#6

you post the full script..
Reply
#7

Quote:
Originally Posted by DarkScripter
Посмотреть сообщение
you post the full script..
I fixed it, it's fine now thanks for the help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)