Jump to content
  • 0

[GF/RP] Problema vama


Question

Posted

Am luat o vama Ls-sf de pe samp.ro dar am un bug la ea, oriunde ar fi pot sa deschid vama cu /vamals si imi ia bani , cum fac ca comanda /vamals sa mearga zin zona vamei?

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

7 answers to this question

Recommended Posts

Posted

Imi da 4 erorii.

C:\Documents and Settings\BogdaneL\My Documents\Downloads\HGZ\filterscripts\vama.pwn(89) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\BogdaneL\My Documents\Downloads\HGZ\filterscripts\vama.pwn(89) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\BogdaneL\My Documents\Downloads\HGZ\filterscripts\vama.pwn(89) : error 036: empty statement
C:\Documents and Settings\BogdaneL\My Documents\Downloads\HGZ\filterscripts\vama.pwn(89) : 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.
Si uite cum am pus.
public OnPlayerCommandText(playerid, cmdtext[])
{
	if( strcmp(cmdtext, "/vamasf", true)==0)
	{
	if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855);
	MoveObject(vamasf, 57.926933, -1539.014282, 9.126878, 2);
	GivePlayerMoney(playerid, -1000);
	SendClientMessage(playerid, COLOR_RED, "Vama A Fost Deschisa.Ti-am luat 1000$");
	SetTimerEx("Actiunea", 2 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid
	}
    if( strcmp(cmdtext, "/vamals", true)==0)
    {
        if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855);
        MoveObject(vamals, 60.370384, -1526.173584, 9.289394, 2);
  		GivePlayerMoney(playerid, -1000);
		SendClientMessage(playerid, COLOR_RED, "Vama A Fost Deschisa.Ti-am luat 1000$");
        SetTimerEx("Actiuneavamasf", 2 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid
        return 1;
    }
    return 0;

}

si forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Posted

Imi da 3 erori.

public OnPlayerCommandText(playerid, cmdtext[])
{
	if( strcmp(cmdtext, "/vamasf", true)==0)
	{
	if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855)
        {
	    MoveObject(vamasf, 57.926933, -1539.014282, 9.126878, 2);
	    GivePlayerMoney(playerid, -1000);
	    SendClientMessage(playerid, COLOR_RED, "Vama A Fost Deschisa.Ti-am luat 1000$");
	    SetTimerEx("Actiunea", 2 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid
	}
    if( strcmp(cmdtext, "/vamals", true)==0)
	{
	if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855)
        {
        MoveObject(vamals, 60.370384, -1526.173584, 9.289394, 2);
  		GivePlayerMoney(playerid, -1000);
		SendClientMessage(playerid, COLOR_RED, "Vama A Fost Deschisa.Ti-am luat 1000$");
        SetTimerEx("Actiuneavamasf", 2 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid
        return 1;
    }
    return 0;

}
C:\Documents and Settings\BogdaneL\My Documents\Downloads\HGZ\filterscripts\vama.pwn(93) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\BogdaneL\My Documents\Downloads\HGZ\filterscripts\vama.pwn(102) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\BogdaneL\My Documents\Downloads\HGZ\filterscripts\vama.pwn(115) : error 030: compound statement not closed at the end of file (started at line 93)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Posted

Incearca asa:

 public OnPlayerCommandText(playerid, cmdtext[])
{
	if( strcmp(cmdtext, "/vamasf", true)==0)
	{
	if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855)
        {
	    MoveObject(vamasf, 57.926933, -1539.014282, 9.126878, 2);
	    GivePlayerMoney(playerid, -1000);
	    SendClientMessage(playerid, COLOR_RED, "Vama A Fost Deschisa.Ti-am luat 1000$");
	    SetTimerEx("Actiunea", 2 * 1000, 0, "i", playerid); 
	}
}
    if( strcmp(cmdtext, "/vamals", true)==0)
	{
	if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855)
        {
        MoveObject(vamals, 60.370384, -1526.173584, 9.289394, 2);
  		GivePlayerMoney(playerid, -1000);
		SendClientMessage(playerid, COLOR_RED, "Vama A Fost Deschisa.Ti-am luat 1000$");
        SetTimerEx("Actiuneavamasf", 2 * 1000, 0, "i", playerid); 
        return 1;
    }
}
    return 0;

}

Daca tot da warning-urile inseamna ca nu ai publicul PlayerToPoint . Iti recomand sa bagi comanda + obiectele in gamemode.

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.