error 010: Invalid Function HELP!
#1

C:\Users\Dennis\Desktop\Ny mapp\LSLRP 0.3C\gamemodes\SASDLSPDHQ.pwn(119) : error 010: invalid function or declaration
C:\Users\Dennis\Desktop\Ny mapp\LSLRP 0.3C\gamemodes\SASDLSPDHQ.pwn(123) : error 010: invalid function or declaration

Got those two errors when i compiled and this is the scripted part by me.

if (strcmp("/gateclose", cmdtext, true, 10) == 0)
{
MoveObject(968,1407.65356445,423.91366577,19.75000 000,0.00000000,89.00000000);//This will move the gate back to the old position
}
return 1;
}
}

Thanks!!!
Reply
#2

Did you put your code into OnPlayerCommandText?
If you don't know that please post a little bit more of your code.
Reply
#3

If im right (not sure), it is: if(!strcmp(cmdtext, "/closegate", true, 10))
There are other ways aswell, but dont know them.
Reply
#4

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
If im right (not sure), it is: if(!strcmp(cmdtext, "/closegate", true, 10))
There are other ways aswell, but dont know them.
Thanks that was the problem fixed it!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)