SA-MP Forums Archive
Problems with a command "buygun" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: Problems with a command "buygun" (/showthread.php?tid=98474)



Problems with a command "buygun" - fixgon - 21.09.2009

I cant buy guns becase i dont know where the coordinates X And Z only he proves to be location == 99




if (strcmp(cmd, "/buygun", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerMoney(playerid) > 1)
{
new gun;
new gunid[16];
new gunstring1[256];
new gunstring2[256];
new gunstring3[256];
new gunstring4[256];
new gunstring5[256];
new infostring[256];
new guncharge;
new ammocharge;
new location = PlayerInfo[playerid][pLocal];
if(location == 99 || location == 100 || location == 102) //------here---here---here----here---//
{
if(BizzInfo[location][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~closet", 5000, 1);
return 1;
}
new mod = 100;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{




Re: Problems with a command "buygun" - Mikep. - 21.09.2009

Quote:

If you need help installing or playing SA-MP, ask questions in here.