Problems with a command "buygun"
#1

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))
{

Reply
#2

Quote:

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)