Jump to content
  • 0

Cerere Ajutor Stunt Point ..


xt3z0ne

Question

NickJohnny

Problema:Deci cand fac un stunt in loc sai dea 20 stunt point i da de 7 ori cate 20 sp = 140:| Si nu stiu ce sai mai fac...

Erori / warnings:~

Lini/script:[pawn]public OnPlayerEnterCheckpoint(playerid)

{

new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0);

if (cpid == 1)

    {

        DisablePlayerCheckpoint(playerid);

        PlayerInfo[giveplayerid][stuntPoint] +=20;

        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);

    }

  new cpid2 = SetPlayerCheckpoint(playerid,1851.7083, 1426.3226, 15.9196,4.0);

if (cpid2 == 1)

    {

        DisablePlayerCheckpoint(playerid);

        PlayerInfo[giveplayerid][stuntPoint] +=20;

        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);

    }

  new cpid3 = SetPlayerCheckpoint(playerid,2000.9673, 1213.1139, 17.0789,4.0);

if (cpid3 == 1)

    {

        DisablePlayerCheckpoint(playerid);

        PlayerInfo[giveplayerid][stuntPoint] +=20;

        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);

    }

  new cpid4 = SetPlayerCheckpoint(playerid,2396.9082, 1146.4279, 33.2691,4.0);

if (cpid4 == 1)

    {

        DisablePlayerCheckpoint(playerid);

        PlayerInfo[giveplayerid][stuntPoint] +=20;

        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);

    }

  new cpid5 = SetPlayerCheckpoint(playerid,2776.7856, 1257.4076, 16.9512,4.0);

if (cpid5 == 1)

    {

        DisablePlayerCheckpoint(playerid);

        PlayerInfo[giveplayerid][stuntPoint] +=20;

        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);

    }

    new cpid6 = SetPlayerCheckpoint(playerid,1958.6522, 1943.2184, 22.2268,4.0);

if (cpid6 == 1)

    {

        DisablePlayerCheckpoint(playerid);

        PlayerInfo[giveplayerid][stuntPoint] +=20;

        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);

    }

    new cpid7 = SetPlayerCheckpoint(playerid,-1389.2230, 673.6660, 2.2660,4.0);

if (cpid7 == 1)

    {

        DisablePlayerCheckpoint(playerid);

        PlayerInfo[giveplayerid][stuntPoint] +=20;

        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);

    }

return 1;

}[/pawn]

Si asta-i comanda.

[pawn]CMD:setstunt(playerid, params[])

{

if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid, RED, "ERROR: Only admins can use that command!");

if(sscanf(params, "ud", giveplayerid, stunt1)) return SendClientMessage(playerid, RED, "");

if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "ERROR: That player is not connected!");

new stun[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(giveplayerid, Global_Name, sizeof(Global_Name));GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(stun,sizeof(stun),PlayerStun,Name);

format(sstring, sizeof(sstring), "You have succesfully setted %s Stunt Point to %d!", Global_Name, stunt1);

SendClientMessage(playerid, BLUE, sstring);

format(sstring, sizeof(sstring), "Admin %s has setted your Stunt Point to %d!", Name, stunt1);

SendClientMessage(giveplayerid, BLUE, sstring);

PlayerInfo[giveplayerid][stuntPoint] = stunt1;

dini_IntSet(stun,"StuntPoint:", PlayerInfo[giveplayerid][stuntPoint]);

return 1;

}[/pawn]

Ai incercat sa rezolvi singur ?:Nam incercat pentru ca nu stiu carei problema..

Sunt un retardat

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Tare greu era sa dai mai multa atentie, ti-ai fii dat seama si singur..

In loc de:

public OnPlayerEnterCheckpoint(playerid)
{
	new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0);
	if (cpid == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
   	new cpid2 = SetPlayerCheckpoint(playerid,1851.7083, 1426.3226, 15.9196,4.0);
	if (cpid2 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
   	new cpid3 = SetPlayerCheckpoint(playerid,2000.9673, 1213.1139, 17.0789,4.0);
	if (cpid3 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
   	new cpid4 = SetPlayerCheckpoint(playerid,2396.9082, 1146.4279, 33.2691,4.0);
	if (cpid4 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
   	new cpid5 = SetPlayerCheckpoint(playerid,2776.7856, 1257.4076, 16.9512,4.0);
	if (cpid5 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
    new cpid6 = SetPlayerCheckpoint(playerid,1958.6522, 1943.2184, 22.2268,4.0);
	if (cpid6 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
    new cpid7 = SetPlayerCheckpoint(playerid,-1389.2230, 673.6660, 2.2660,4.0);
	if (cpid7 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
	return 1;
} 
Pune:
public OnPlayerEnterCheckpoint(playerid)
{
	new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0);
	if (cpid == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
	return 1;
} 

Link to comment
Share on other sites

Eu in gm am

[pawn] if(r1acheck[playerid] == 1)

{

    DisablePlayerCheckpoint(playerid);

    r1acheck[playerid] = 0;

    PlayerInfo[playerid][Coins] += 5;

PlayerInfo[playerid][stunt_Score] += 1;

GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+5 Coins~n~~y~+1 Stunt Point", 3000, 3);[/pawn]

93.119.26.23:7777

Link to comment
Share on other sites

Incearca asta daca nu-ti merge posteaza comanda de startstunt .

public OnPlayerEnterCheckpoint(playerid)
{
	new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0);
	if (cpid == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
   	new cpid2 = SetPlayerCheckpoint(playerid,1851.7083, 1426.3226, 15.9196,4.0);
	else if (cpid2 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
   	new cpid3 = SetPlayerCheckpoint(playerid,2000.9673, 1213.1139, 17.0789,4.0);
	else if (cpid3 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
   	new cpid4 = SetPlayerCheckpoint(playerid,2396.9082, 1146.4279, 33.2691,4.0);
	else if (cpid4 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
   	new cpid5 = SetPlayerCheckpoint(playerid,2776.7856, 1257.4076, 16.9512,4.0);
	else if (cpid5 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
    new cpid6 = SetPlayerCheckpoint(playerid,1958.6522, 1943.2184, 22.2268,4.0);
	else if (cpid6 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
    new cpid7 = SetPlayerCheckpoint(playerid,-1389.2230, 673.6660, 2.2660,4.0);
	else if (cpid7 == 1)
    {
        DisablePlayerCheckpoint(playerid);
        PlayerInfo[giveplayerid][StuntPoint] +=20;
        GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
    }
	return 1;
}

Link to comment
Share on other sites

Eu in gm am

[pawn] if(r1acheck[playerid] == 1)

{

    DisablePlayerCheckpoint(playerid);

    r1acheck[playerid] = 0;

    PlayerInfo[playerid][Coins] += 5;

PlayerInfo[playerid][stunt_Score] += 1;

GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+5 Coins~n~~y~+1 Stunt Point", 3000, 3);[/pawn]

Pacat ca nui facut de tine  Claws voi face ca tine cand ajung

Sunt un retardat

Link to comment
Share on other sites

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.