SA-MP Forums Archive
Error undefinite simbol cmd? HELPP!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error undefinite simbol cmd? HELPP!! (/showthread.php?tid=162520)



Error undefinite simbol cmd? HELPP!! - Fab10 - 23.07.2010

Код 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..


Re: Error undefinite simbol cmd? HELPP!! - FUNExtreme - 23.07.2010

change cmd to cmdtext


Re: Error undefinite simbol cmd? HELPP!! - Fab10 - 23.07.2010

ok and for optimize this command?


Re: Error undefinite simbol cmd? HELPP!! - Fab10 - 23.07.2010

help!
PLEASE