Warning code, and a question.
#4

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
Again me, xD, this should do it:

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == LSPD)
    {
        SetPlayerPos(playerid, -1402.2529,-134.3108,14.1484);
        SendClientMessage(playerid, COLOR_BLUE, "You've chosen to become an officer, proceed to the next checkpoint to continue, unless you'll prefer to use /home.");
    }
    if(pickupid == FBI)
    {
        SetPlayerPos(playerid, 1786.4082,-1298.6226,120.2656);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "You've chosen to become an agent, proceed to the next checkpoint to continue, unless you'll prefer to use /home.");
    }
}
Hehe, thanks again !

Quote:
Originally Posted by MouseBreaker
Посмотреть сообщение
This will work

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == LSPD)
    {
        SetPlayerPos(playerid, -1402.2529,-134.3108,14.1484);
        SendClientMessage(playerid, COLOR_BLUE, "You've chosen to become an officer, proceed to the next checkpoint to continue, unless you'll prefer to use /home.");
    }
    if(pickupid == FBI)
    {
        SetPlayerPos(playerid, 1786.4082,-1298.6226,120.2656);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "You've chosen to become an agent, proceed to the next checkpoint to continue, unless you'll prefer to use /home.");
    }
    return 1;
}
Thank you, it worked the code is readable, but the "LSPD" pickup now does both lines of the FBI...
Which means the FBI pickup doesn't do anything, but the LSPD one does both,


pawn Код:
SendClientMessage(playerid, COLOR_BLUE, "You've chosen to become an officer, proceed to the next checkpoint to continue, unless you'll prefer to use /home.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You've chosen to become an agent, proceed to the next checkpoint to continue, unless you'll prefer to use /home.");
SetPlayerPos(playerid, 1786.4082,-1298.6226,120.2656);
Lol how do I fix it, sorry for all the questions am new to scripting, I'll rep
Reply


Messages In This Thread
Warning code, and a question. - by CLT - 26.06.2013, 08:51
Re: Warning code, and a question. - by Cjgogo - 26.06.2013, 08:55
AW: Warning code, and a question. - by Skimmer - 26.06.2013, 08:56
Re: AW: Warning code, and a question. - by CLT - 26.06.2013, 09:08
AW: Warning code, and a question. - by Skimmer - 26.06.2013, 09:15
Re: Warning code, and a question. - by CLT - 26.06.2013, 09:22
AW: Warning code, and a question. - by Skimmer - 26.06.2013, 09:36
Re: AW: Warning code, and a question. - by CLT - 26.06.2013, 09:51
AW: Warning code, and a question. - by Skimmer - 26.06.2013, 09:59
Re: AW: Warning code, and a question. - by CLT - 26.06.2013, 10:21

Forum Jump:


Users browsing this thread: 1 Guest(s)