[HELP]Issue with a spawn car script
#1

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 ^^"
Reply
#2

Is there a problem compiling the script or just the commands in-game?
Reply
#3

Compiling log is clear no warning or errors, but in game the command doesn't work.
Reply
#4

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)
Reply
#5

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.
Reply
#6

In fact the error was in the Java programm I use to generate the script ^^ Thank you all for your help .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)