Need help with points and money
#2

You have to use bracets

pawn Код:
#include <a_samp>

#define COLOR_RED 0xCC0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PINK 0xFFC0CBAA

public OnPlayerCommandText (playerid, cmdtext[])
{
if (strcmp(cmdtext, "/drift", true) == 0)
{
GetPlayerVehicleID(playerid);
GetPlayerFacingAngle(playerid, Float:20);
SetPlayerScore(playerid, 1);
GivePlayerMoney(playerid, 200);
}
return 1;
}
Important note: I did not indent the code, please use the search button if you don't know what indentation is
Reply


Messages In This Thread
Need help with points and money - by BaFTa - 03.06.2010, 17:22
Re: Need help with points and money - by FUNExtreme - 03.06.2010, 17:28
Re: Need help with points and money - by BaFTa - 03.06.2010, 17:31
Re: Need help with points and money - by FUNExtreme - 03.06.2010, 17:33
Re: Need help with points and money - by BaFTa - 03.06.2010, 17:39
Re: Need help with points and money - by FUNExtreme - 03.06.2010, 17:57

Forum Jump:


Users browsing this thread: 2 Guest(s)