pls.. Help...
#1

I'm have a command on you can see your vehicles,but not working...
I'm see all vehicles of the server,why?
Код:
if(strcmp(cmd, "/mycars", true) == 0)
	{
	if(AccountInfo[playerid][Vehicule] == 0) return SCM(playerid, ERROR, "Nu ai nici-un vehicul !");
	for(new i=1;i<buyablecars;i++)
		{
		if(strcmp(VehInfo[i][Propietar], name, true) == 0)
	    	{
	    	    new string[MAX_STRING];
			 	GetVehicleName(i);
			 	format(string,sizeof(string), "Model-> %s, ID: %d, Kilometrii: %.1f",VehicleNames[GetVehicleModel(i)-400],VehInfo[i][Model], VehInfo[i][Km]);
				SCM(playerid,COLOR_YELLOW,string);
				format(string,sizeof(string), "Vehicule: %d | Sloturi pentru vehicule: %d", AccountInfo[playerid][Vehicule], AccountInfo[playerid][MaxVeh]);
				SCM(playerid,COLOR_YELLOW,string);
			}
		else if(VehInfo[i][Km] <= 0)
		{
		return GivePlayerMoney(playerid, 0);
		}
		}
	return 1;
	}
Thanks!
Reply
#2

Please try to explain it more, i can't really understand anything.
Reply
#3

Quote:
Originally Posted by willbedie
Посмотреть сообщение
Please try to explain it more, i can't really understand anything.
When i'm type /mycars,The server send message to me: Server:Unknown command..
even if command is implemented...
[P.S:Sorry for my bad english...]
Reply
#4

If you have #include ZCMD on top of your script then change
PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 
To
PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success
Reply
#5

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
If you have #include ZCMD on top of your script then change
PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 
To
PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success
I'm have dcmd.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)