Error undefinite simbol cmd? HELPP!!
#1

Код HTML:
C:\Users\Tony\Desktop\vmenu.pwn(109) : error 017: undefined symbol "cmd"
C:\Users\Tony\Desktop\vmenu.pwn(124) : warning 217: loose indentation
Код HTML:
	if(strcmp(cmd, "/vmenu", true) == 0) // by Fabio
	{
		new z=0,vvid=-1;
		if(IsPlayerInAnyVehicle(playerid))vvid=GetPlayerVehicleID(playerid);
	    if(IsPlayerConnected(playerid))
	    {
			for(new car = 0; car <= MAX_VEHICLES; car++)
			{
				if(!strcmp(CarInfo[car][cOwner],GetName(playerid)))
				{
					if(car==0)format(string,sizeof(string),"%s - [%d]",string,(CarInfo[car][cDescription]),car);
					else format(string,sizeof(string),"%s\n%s - [%d]",string,(CarInfo[car][cDescription]),car);
					if(car==vvid) format(string,sizeof(string),"%s (Actual) - [%d]",string,car);
					z++;
				}
		if(z==0)return SendClientMessage(playerid,0xAFAFAFAA,"You don't have vehicles");
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "VMenu - Your cars", string, "Select", "Cancel");
			}
		}
		return 1;
	}
in game this command work, but if send message Server: uknown command
Please help me resolve this error and optimize this command

Sorry for mi bad shit english but i'm Italian user..
Reply
#2

change cmd to cmdtext
Reply
#3

ok and for optimize this command?
Reply
#4

help!
PLEASE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)