How do i create A Stater Pack
#1

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

Elaborate. What are you talking about?
Reply
#3

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;
}
}

Reply
#4

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!
Reply
#5

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)

Reply
#6

Show us the creating of that variable/enum
Reply
#7

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);
Reply
#8

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;
Reply
#9

Wow great ill try it lol u smart
Reply
#10

Show the definition of pNew.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)