Please 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: Please help (
/showthread.php?tid=259641)
Please help -
Forgot - 05.06.2011
I have some problems. In script, are the commands, but in game says "Unknown Command". All the commands are like that. And, i added a lot of object whit MTA, but don't save all of them. How i do to save all? Sorry for my bad english.
Re: Please help -
geerdinho8 - 05.06.2011
Show the commands and be more clearly.
Re: Please help -
Forgot - 05.06.2011
At all the commands say "Unknown Command".
Re: Please help -
Mean - 05.06.2011
1. You need to add return 1; at the end of EVERY command, for example:
pawn Код:
if( !strcmp( cmdtext, "testcmd", true ) ) {
SendClientMessage( playerid, -1, "Test. " );
return 1; // I meant this.
}
2. You are exceeding the object limit, get a streamer, such as Incognito's streamer.
Re: Please help -
Forgot - 05.06.2011
1. At every command is return 1.
2. Where i can find it, and how it works?
Edit : First problem I fixed, now, where i find Streamer?
Re: Please help -
geerdinho8 - 05.06.2011
1. Do you have return 0; at the end of OnPlayerCommandText?
2. Use search button
Re: Please help -
Forgot - 05.06.2011
I download the Streamer. I added object whit CreateObject, and don't save all of them.
Re: Please help -
Mean - 05.06.2011
For Incognito's streamer, you need to change your objects to CreateDynamicObject.
Click the little replace button, close to compile button and replace all your CreateObject codes to CreateDynamicObject.