SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 23/07/2010, 08:52 PM   #1
Fab10
Big Clucker
 
Join Date: Jul 2010
Posts: 50
Reputation: 0
Default Error undefinite simbol cmd? HELPP!!

HTML Code:
C:\Users\Tony\Desktop\vmenu.pwn(109) : error 017: undefined symbol "cmd"
C:\Users\Tony\Desktop\vmenu.pwn(124) : warning 217: loose indentation
HTML Code:
	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..
Fab10 is offline  
Old 23/07/2010, 08:52 PM   #2
FUNExtreme
Gangsta
 
Join Date: Mar 2008
Posts: 891
Reputation: 109
Default Re: Error undefinite simbol cmd? HELPP!!

change cmd to cmdtext
FUNExtreme is offline  
Old 23/07/2010, 09:02 PM   #3
Fab10
Big Clucker
 
Join Date: Jul 2010
Posts: 50
Reputation: 0
Default Re: Error undefinite simbol cmd? HELPP!!

ok and for optimize this command?
Fab10 is offline  
Old 23/07/2010, 09:14 PM   #4
Fab10
Big Clucker
 
Join Date: Jul 2010
Posts: 50
Reputation: 0
Default Re: Error undefinite simbol cmd? HELPP!!

help!
PLEASE
Fab10 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 09:35 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.