[HELP]Issue with a spawn car script - 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)
+--- Thread: [HELP]Issue with a spawn car script (
/showthread.php?tid=422546)
[HELP]Issue with a spawn car script -
Shalien - 14.03.2013
Hello everybody,
I'm a beginner in Pawn Script and i tried to make a FS for make car spawn with a command (e.g. : /infernus spawn a infernos).
Because he was very long (~2500 lines) i shortened it but he doesn't work and i can't find why ..
So, this is the link to my script on pastebin :
http://pastebin.com/6wBKjVpA
Thank, an excuse my poor English ^^"
Re: [HELP]Issue with a spawn car script -
Travis The Tiger - 14.03.2013
Is there a problem compiling the script or just the commands in-game?
Re: [HELP]Issue with a spawn car script -
Shalien - 14.03.2013
Compiling log is clear no warning or errors, but in game the command doesn't work.
Re: [HELP]Issue with a spawn car script -
Gamer_Z - 14.03.2013
Quote:
Originally Posted by Shalien
Compiling log is clear no warning or errors, but in game the command doesn't work.
|
pawn Код:
forward OnPlayerConnected(playerid);
public OnPlayerConnected(playerid)
{
SendClientMessage(playerid,DARKGREY,"This server runs Shalien's Vehicules FS");
return 1;
}
Did you mean OnPlayerConnect(playerid); , why the forward? Your message won't get displayed.
As for the commands I suggest you to use ZCMD or y_commands. (look them up)
Re: [HELP]Issue with a spawn car script -
Shalien - 14.03.2013
Well when i compiling whitout the forward, an error occur because i didn't forward the OnPlayerConnect() function.
I gonna look for the command you suggest.
Re: [HELP]Issue with a spawn car script -
Shalien - 16.03.2013
In fact the error was in the Java programm I use to generate the script ^^ Thank you all for your help .