"/car" help | need some direction
#1

Hi, I was looking through a few scripts I had on my computer and I don't understand what the following means entirely.

Код:
if(IsPlayerConnected(playerid))
	    {
   			new x_v[256];
		    x_v = strtok(cmdtext, idx);
			if(!strlen(x_v))
			{
				SendClientMessage(playerid, COLOR_WHITE, "Server: /car [name]");
		  		SendClientMessage(playerid, COLOR_WHITE, "Available names: engine, hood, trunk, lights");
				return 1;
			}
I understand that it checks if the player is connected and it will send them a message, but I don't understand

Код:
 	new x_v[256];
		    x_v = strtok(cmdtext, idx);
			if(!strlen(x_v))
Could someone provide some assistance please for a push in the right direction? Much appreciated.
Reply


Messages In This Thread
"/car" help | need some direction - by darkvsoul36 - 23.07.2012, 00:12
Re: "/car" help | need some direction - by Kindred - 23.07.2012, 00:14
Re: "/car" help | need some direction - by darkvsoul36 - 23.07.2012, 00:20

Forum Jump:


Users browsing this thread: 1 Guest(s)