SA-MP Forums Archive
How do i create A Stater Pack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How do i create A Stater Pack (/showthread.php?tid=343576)



How do i create A Stater Pack - miley1 - 18.05.2012

So my question is how do i create a Basic starter pack Wich Can be picken up 1 time by everyplayer that register


Re: How do i create A Stater Pack - MP2 - 18.05.2012

Elaborate. What are you talking about?


Re: How do i create A Stater Pack - miley1 - 18.05.2012

Bro just made it but got those errors left
Quote:

C:\Users\Snor!\Desktop\Real Life ENG\gamemodes\audi.pwn(27787) : warning 213: tag mismatch
C:\Users\Snor!\Desktop\Real Life ENG\gamemodes\audi.pwn(27791) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

, Ive tried to fix but idk what is wrong all seems good


Quote:

if(!strcmp(cmdtext, "/starter", true))
{
if(PlayerInfo[playerid][pNew] == 0)

if(IsPlayerInRangeOfPoint(playerid, 3,1476.9500,-1836.0697,13.5469))
{
PlayerInfo[playerid][pNew] = 1;
SendClientMessage(playerid, 0x33CCFFAA, "Welcome have a starter gift.");
SafeGivePlayerMoney(playerid, 500);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You aren't at equip place and/or a beginner!.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You Already had youre Starter pack Money!.");
return 1;
}
}




Re: How do i create A Stater Pack - JaTochNietDan - 18.05.2012

Can you please outline which lines the warnings point to?

I suspect that your colour defines might not be correct for SendClientMessage, but I can't really see which lines the problems are on without you highlighting them!


Re: How do i create A Stater Pack - miley1 - 18.05.2012

Ow LOL! im so sorry i rlly didnt mension it xD

27787 To This one
Quote:

PlayerInfo[playerid][pNew] = 1;

27791> And this one
Quote:

if(PlayerInfo[playerid][pNew] == 0)




Re: How do i create A Stater Pack - milanosie - 18.05.2012

Show us the creating of that variable/enum


Re: How do i create A Stater Pack - miley1 - 18.05.2012

Hope u ment this
pawn Код:
new pNew;
pawn Код:
CreateDynamicPickup(1239, 1, 1476.9500,-1836.0697,13.5469);
    Create3DTextLabel("[Starter Money] \n /Starter",0x00FF00AA, 1476.9500,-1836.0697,13.5469, 15, 0, 1);



Re: How do i create A Stater Pack - milanosie - 18.05.2012

pNew is part of the enum PlayerInfo.
Not a new standalone variable

So at the enum PlayerInfo


Add pNew there, and remove the new pNew;


Re: How do i create A Stater Pack - miley1 - 18.05.2012

Wow great ill try it lol u smart


Re: How do i create A Stater Pack - MP2 - 18.05.2012

Show the definition of pNew.