23.07.2012, 00:12
Hi, I was looking through a few scripts I had on my computer and I don't understand what the following means entirely.
I understand that it checks if the player is connected and it will send them a message, but I don't understand
Could someone provide some assistance please for a push in the right direction? Much appreciated.
Код:
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;
}
Код:
new x_v[256]; x_v = strtok(cmdtext, idx); if(!strlen(x_v))

