Jump to content

Recommended Posts

Posted

Pai cauti spawn-ul pe care il ai , il inlocuiesti cu cel pe care'l vrei . Daca e nevoie setezi si interiorul pe "0" .

 

P.S.: Server RP sau Stunt ? ? ?  :blink:

Posted

new Float:CivilSpawns[1][1] = {

{1081.2350,-1697.1350,13.5469} // aici coordonatele tale
 
};
Sau cauta in gamemode tau "civilspawns" si modifica coordonatele

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted (edited)

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.
Posted

In loc de :

new mod = 100;

 

Incearca sa pui:

new mod [100];

Ocupation: Youtube, Mined Bitcoin's, Scripting & Mapping SA:MP

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.