16.04.2009, 16:08
I add this to my script :
if (strcmp(cmd, "/buygun", true) == 0)
{
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 (PlayerToPoint(1, playerid,295.5650,-37.5810,1001.5156) || PlayerToPoint(4, playerid,296.3506,-38.0523,1001.5156))
{
SendClientMessage(playerid, COLOR_WHITE,"You are not in a store");
return 1;
}
new mod = (BizzInfo[location-99][bPriceMod]);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
But when i go to that coordinate and do /Buygun it says i am not in the store but i am on the coordinate (are in the interiors 1 & 4 ammonation)
if somebody know's what i am doing wrong please reply very much thanks Joker...
if (strcmp(cmd, "/buygun", true) == 0)
{
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 (PlayerToPoint(1, playerid,295.5650,-37.5810,1001.5156) || PlayerToPoint(4, playerid,296.3506,-38.0523,1001.5156))
{
SendClientMessage(playerid, COLOR_WHITE,"You are not in a store");
return 1;
}
new mod = (BizzInfo[location-99][bPriceMod]);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
But when i go to that coordinate and do /Buygun it says i am not in the store but i am on the coordinate (are in the interiors 1 & 4 ammonation)
if somebody know's what i am doing wrong please reply very much thanks Joker...