Jump to content

arci224

Uživatel
  • Příspěvků

    331
  • Registrován

  • Aktivní

  • Vítězných dnů

    2

Příspěvky posted by arci224

  1. Dobrý den mám script

    forward InitializeAchievmentsForPlayer(playerid);
    public  InitializeAchievmentsForPlayer(playerid){
    	new query[250];
    	new HELP[30];
    	format(query, 250, "SELECT * FROM earned WHERE gamerid=%d", GetPVarInt(playerid, "gamerid"));
    	new DBResult:result = Query(adb, query); // ERROR + WARN řádek.
    	for(new a;a<db_num_rows(result);a++){
    		db_get_field_assoc(result, "achievmentid", HELP, 30);
    		new achievmentid = strval(HELP);
    		format(HELP, 30, "achiev_%d", achievmentid);
    		SetPVarInt(playerid, HELP, 1);
    	    db_next_row(result);
    	}
    	db_free_result(result);
    }
    

    jak se snažím tak se snažím to opravit aby mi to nevyhazovalo tuto chybu.

    D:\server\dench\dench\samp\filterscripts\achievments.pwn(25) : error 017: undefined symbol "Query"
    D:\server\dench\dench\samp\filterscripts\achievments.pwn(25) : warning 213: tag mismatch
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    1 Error.
    
    
  2. Vyser se na pawno a bude klid.. neustále chceš po liddech aby ti to napawnily oni a ty se vůbec nesnažíš. Tak naco ti to budou neustále dělat. a když na jiném fórum napíšeš na rovinu že prosím uděláte mi to, tak by se radši na tebe měly vysrat :)

  3.  

     

    forward Vyplaty(); ///hore v mode
     
    public Vyplaty() /////////////// public nad OnFilterscipt
    {
    	for(new i=0; i<MAX_PLAYERS; i++)
    	{
    		if(PlayerInfo[i][pJob] == 0)
    		{
    			GivePlayerMoney(i, 3563);
    			SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Obdržal si podporu pre nezamestnaných 3 563$.");
    		}
    		else if(PlayerInfo[i][pJob]==1)
    		{
    			GivePlayerMoney(i, 7864);
    			SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 7 864$.");
    		}
    		else if(PlayerInfo[i][pJob] == 2)
    		{
    			GivePlayerMoney(i, 7480);
    			SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 7 480$.");
    		}
    		else if(PlayerInfo[i][pJob] == 3)
    		{
    			GivePlayerMoney(i, 7503);
    			SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 7 503$.");
    		}
    		else if(PlayerInfo[i][pJob] == 4)
    		{
    			GivePlayerMoney(i, 5320);
    			SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 5 320$.");
    		}
    		else if(PlayerInfo[i][pJob] == 5)
    		{
    			GivePlayerMoney(i, 4830);
    			SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 4830$.");
    		}
    		else if(PlayerInfo[i][pJob] == 6)
    		{
    			GivePlayerMoney(i, 8450);
    			SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 8450$.");
    		}
    		else if(PlayerInfo[i][pJob] == 7)
    		{
    			GivePlayerMoney(i, 4956);
    			SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ]Prišla ti výplata 4956$.");
    		}
    	}
    return 1;
    }
     
    SetTimer("Vyplaty",10000,true); //timer na začiatku v gamemodeinit 

     

     

     

    takto to skus.

  4. ~> Ne nedal. Dal jsi to do špatné složky. A ne jen to. Ty ten zcmd ani nenahráváš, protože to by se pak objevil error, že ho nemůže najít. A kdyby tam byl, tak bys měl ten problém už vyřešený.

    .. nemusel ho zapsat vůbec do pawna kam chce dát /admins..

×
×
  • Create New...