SA-MP Forums Archive
Help me please - 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: Help me please (/showthread.php?tid=513064)



Help me please - Moleex - 14.05.2014

I got a error
Код:
 C:\Users\ddfik\Desktop\dfdf (10)\gamemodes\dfdf .pwn(42151) : error 017: undefined symbol "giveplayerid"
the command

Код:
CMD:buygoldvip(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 324.09, 1119.37, 1083.88))
{
	(PlayerInfo[giveplayerid][pDonateRank] > 1)
	GivePlayerMoney(playerid, -70000000);
   }
    return 1;
}



Re: Help me please - Spartaaaaa - 14.05.2014

CMD:buygoldvip(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 324.09, 1119.37, 1083.8)
{
[PlayerInfo][playerid][pCrack] += 25;
GivePlayerMoney(playerid, -70000000);
}
return 1;
}


Re: Help me please - Beckett - 14.05.2014

You just ripped that PlayerInfo line off and want it to work.

Anyway:

pawn Код:
CMD:buygoldvip(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 324.09, 1119.37, 1083.88))
{
    (PlayerInfo[playerid][pDonateRank] > 1) { GivePlayerMoney(playerid, -70000000); }
   }
    return 1;
}



Re: Help me please - Konstantinos - 14.05.2014

pawn Код:
CMD:buygoldvip(playerid, params[])
{
    if (IsPlayerInRangeOfPoint(playerid, 3.0, 324.09, 1119.37, 1083.88) && PlayerInfo[playerid][pDonateRank] > 1)
    {
        GivePlayerMoney(playerid, -70000000);
    }
    return 1;
}
@Spartaaaaa & DaniceMcHarley: It needs to be in an if statement, otherwise it's invalid.