SA-MP Forums Archive
error 010: Invalid Function 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 010: Invalid Function HELP! (/showthread.php?tid=261672)



error 010: Invalid Function HELP! - Lee_adams - 14.06.2011

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!!!


AW: error 010: Invalid Function HELP! - Blowfish - 14.06.2011

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


Re: error 010: Invalid Function HELP! - Wesley221 - 14.06.2011

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


Re: error 010: Invalid Function HELP! - Lee_adams - 16.06.2011

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!