Jump to content

ARTFollow.

Membru
  • Posts

    36
  • Joined

  • Last visited

Posts posted by ARTFollow.

  1. 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
  2. Am mai intalnit o problema :-s cand ma conectez , contul e in baza de date , dar sa-mp-ul ma pune sa ma inregistrez , scriu parola si pe urma imi zice Va rugam conectati-va cu alt nick , contul este deja in baza de date , si pe urma trebuie sa dau t /login parola...Q

     

     

    Cum fac sa nu imi mai apara sa ma inregistrez daca am cont...

  3. Am rezolvat , era de la lag-ul jucatorului .

     

    Dar am o problema cred ca e de la Car ownership (ca e /v buy) , sunt intr-o parcare din ls ( nu stiu daca sti parcarea aceea din misiunea 1 cu biciclete ) sunt mute masini dar multe cam vreo 300 de masini :o *lag infernal* si cand intri in vreo masina trebuie sa scri /v buy , vreau sa scot toate acele masini , adica as vrea sa scot tot Ownership-ul si sa pun Dealership , dar nu stiu cum sa pun dealership-ul am tot incercat ... As fi recunoscator :(

×
×
  • 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.