Help please...
#1

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...
Reply
#2

Somone.....
Reply
#3

show whole command, how is variable location used?
Reply
#4

:P
Reply
#5

pawn Код:
if (!PlayerToPoint(1, playerid,295.5650,-37.5810,1001.5156) || !PlayerToPoint(4, playerid,296.3506,-38.0523,1001.5156))
Try that.
Reply
#6

yes i wil check it out thanks fore the help anyway greets joker
Reply
#7

but so i now why is this(!) fore than so i get the command ... i am learning and just copieing is not make me get a command .
Reply
#8

You got this in if statement.

if(i am there) => say i am not there.


by doing this

if(!iamthere) = if(iamnotthere)
Reply
#9

Stil doesent work i have try everything ( accept the righte way but i dont know how ) someone please telle me wat i doe wrong..
thanks joker
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)