Jump to content

Question

Posted

if(strcmp(cmd, "/getgift", true) == 0)

{

    if(PlayerToPoint(5.0,playerid,1555.5033,-1675.6689,16.1953))

    {

        new rand = random(5);

        switch(rand)

        {

            case 0: GivePlayerMoney(playerid, 1000000); //playerid, amount

            SendClientMessage(playerid, COLOR_1BLUE,"Felicitari ai castigat 1000000$!");

            case 1: PlayerInfo[playerid][pDonateRank] = 1; //power user

            SendClientMessage(playerid, COLOR_1BLUE,"Felicitari ai castigat Power User!");

            case 2: PlayerInfo[playerid][pCoin] += 50; //shoppoints

            SendClientMessage(playerid, COLOR_1BLUE,"Felicitari ai castigat 50shoppoints!");

            case 3: PlayerInfo[playerid][pExp] += 3; //rp-uri

            SendClientMessage(playerid, COLOR_1BLUE,"Felicitari ai castigat 3rp-uri!");

            default: return 1;

        }

    }

    return 1;

}

Imi da eroare cand compilez pentru ca am bagat SCM-urile si as vrea sa imi spuneti cum sa refac comanda... si ar mai fi cv as vrea sa mearga doar odata pe player sa nu dea accelasi player de 100 de ori

3 answers to this question

Recommended Posts

Posted

errorile...?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

pai am rezolvat problema dar as vrea ca comanda sa aiba un timer adica sa o pot folosi doar o data ! nu de 100 de ori va rog sa ma ajutati ..

Posted

pe ce e sv'u ? sqlite , mysql sau dini ?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.