Jump to content

Cerere tutorial schimbare spawn


ARTFollow.

Recommended Posts

Am rezolvat , dar mai am o problema :-?

 

Vreau sa fac un dealership si vreau sa fac o comanda prin care sa-ti zica ca nu esti la dealership :

 

eu am inceput asa 

 

:

 

 

//===============================================================================================//


CMD:buycar(playerid, params[])
{
if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0)) return SendClientMessage(playerid,COLOR_WHITE,"Nu esti la dealership!");
return 1;
}


//===============================================================================================//
 
 
Si imi da urmatoarele erori :
 
 
C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(10620) : warning 219: local variable "mod" shadows a variable at a preceding level
C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : warning 217: loose indentation
C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : error 029: invalid expression, assumed zero
C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : error 017: undefined symbol "cmd_buycar"
C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : error 029: invalid expression, assumed zero
C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Am bagat 

#include <sscanf2>
#include <zcmd>

Si tot degeaba :(

 

 

La linia 10620 am :

			    if(BizzInfo[location-99][bProducts] <= 0)
			    {
			        GameTextForPlayer(playerid, "~r~Nu ai destui bani.", 5000, 1);
					return (1) ;
			    }
				new mod = 100;
				tmp = strtok(cmdtext, idx);     // LINIA 10620
				if(!strlen(tmp))
				{
					format(string, sizeof(string), "{3C9DF6}Utilizare Comanda{FFFFFF}: /buygun [numele armei] [munitia]");

 

Va rog ajutati-ma !

 

Nu vreau neaparat sa fac prin cmd comanda aceea :-s 

 

 

 

EDIT : Am rezolvat partea cu comanda . Am schimbat modul de a face comanda

 

Din:

//===============================================================================================//


CMD:buycar(playerid, params[])
{
if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0)) return SendClientMessage(playerid,COLOR_WHITE,"Nu esti la dealership!");
return 1;
}


//===============================================================================================//

Am facut :

//===============================================================================================//

	if(strcmp(cmd, "/buycar", true) == 0)
    {
		if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0)) return SendClientMessage(playerid,COLOR_WHITE,"Nu esti la dealership!");
		return 1;
	}

//===============================================================================================//

Sper ca e bine :D 

 

 

S-a compliat dar tot imi da eroarea :

C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(10620) : warning 219: local variable "mod" shadows a variable at a preceding level
Edited by ARTFollow.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.