Jump to content

TzAkS

Membru
  • Posts

    1,144
  • Joined

  • Last visited

Posts posted by TzAkS

  1. Citez: "When trying to run my pawn script on a new linux server, I received the following error:

    1 samp03svr: amx/amxfile.c:222: fputs_cell:

    2 Assertion `fp!=((void *)0)' failed.

    This was actually caused by a missing scriptfiles directory (or the directory was not writeable).

    So take care in your scripts if an fopen really gives you a vaild file pointer and handle the situation if it does not!"

  2. Daca cautai pe forum sigur dadeai de astea

    La problema 1 http://www.sa-mp.ro/forum/index.php/topic,7894.0.html

    La problema 2 http://www.sa-mp.ro/forum/index.php/topic,12653.msg91095.html#msg91095

    Si schimba titlu

  3. Hostu ruleaza pe linux banuiesc..la fiecare streamer pe care il pui in server.cfg pun .so la sfarsit

    In cazul tau : streamer.so

                          sscanf.so

                          audio.so

    Si verifica daca le ai in folderu plugins cu extensia .so

  4. Incearca asa

    	if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    	        if(PlayerInfo[playerid][pAdmin] >= 1339
    			{
    			new bool:unwanted[CAR_AMOUNT];
    			for(new player=0; player<MAX_PLAYERS; player++)
         		{
                	if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
         		}
    			for(new car = 1; car <= 500; car++) //aici pui tu de la ce id pana la ce id vrei sa se respaneze masinile
    			{
    				if(!unwanted[car]) SetVehicleToRespawn(car);
    			}
    			GetPlayerName(playerid, sendername, sizeof(sendername));
    			format(string, sizeof(string), "All unused cars have been respawned by administrator %s.", sendername);
    			SCMTA(COLOR_WHITE,string);
    			}
    		}
    		return 1;
    	}

  5. Cauta

    if(PlayerInfo[playerid][pReg] == 0)
    		{
    Si schimba acolo
    PlayerInfo[playerid][pLevel] = 2;
    Cu ce level vrei tu, Aici schimbi cu cati bani vrei sa ii dea:
    GivePlayerMoney(playerid, 50000);
    Astia sunt banii din buzunar Si
    PlayerInfo[playerid][pAccount] = 2500000;
    Baniii din banca La /buylevel schimba aici
    new levelcost = Suma;

    Aici se calculeaza asa: Nextlevel*levelcost,adica daca pui levelcost 10000

    La level 4 va costa 40000 (Asta doar daca ai la fel cu levelcost)

  6. Cauta in gm tau 

    [pPcarkey1]
    Si dedesupt pui [pPcarkey2] peste tot Si la comanda /v buy Mai pune o cheie :
    if(PlayerInfo[playerid][pPcarkey1] == 999) { }
    			    	else if(PlayerInfo[playerid][pPcarkey2] == 999) { }

  7. Incearca asa:

    public OnPlayerText(playerid, text[])
    {
        new name[24], string[128]; GetPlayerName(playerid, name, sizeof name);
        format(string, sizeof string, "%i %s: %s ", playerid, name, text);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 0;
    }

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