A bit of help please.
#1

I'm trying to add a command to my script that allows me to spawn vehicles on the server, but it's not working to well.

Код:
{
    if(strcmp(cmd, "/getcar 402", true) == 0)
    CreateVehicle(402, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60);
    return 1;
}
This is what happens when try to compile it.

Код:
C:\Users\Jonesy\Desktop\SA-MP scripting\gamemodes\bare.pwn(305) : error 017: undefined symbol "cmd"
C:\Users\Jonesy\Desktop\SA-MP scripting\gamemodes\bare.pwn(310) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
A bit of help please. - by JonesyFoCoTDM - 05.04.2012, 09:03
Re: A bit of help please. - by Ironboy - 05.04.2012, 09:04
Re: A bit of help please. - by JonesyFoCoTDM - 05.04.2012, 09:08
Re: A bit of help please. - by TzAkS. - 05.04.2012, 09:16
Re: A bit of help please. - by JonesyFoCoTDM - 05.04.2012, 09:21
Re: A bit of help please. - by Toreno - 05.04.2012, 09:24
Re: A bit of help please. - by JonesyFoCoTDM - 05.04.2012, 09:30
Re: A bit of help please. - by JonesyFoCoTDM - 05.04.2012, 11:13
Re: A bit of help please. - by Mosslah - 05.04.2012, 11:26
Re: A bit of help please. - by Aira - 05.04.2012, 11:26

Forum Jump:


Users browsing this thread: 1 Guest(s)