Help please... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please... (
/showthread.php?tid=73608)
Help please... -
Jokerr_mayne - 16.04.2009
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...
Re: Help please... -
Jokerr_mayne - 16.04.2009
Somone.....
Re: Help please... -
Rks25 - 16.04.2009
show whole command, how is variable location used?
Re: Help please... -
Jokerr_mayne - 16.04.2009
:P
Re: Help please... -
Rks25 - 16.04.2009
pawn Код:
if (!PlayerToPoint(1, playerid,295.5650,-37.5810,1001.5156) || !PlayerToPoint(4, playerid,296.3506,-38.0523,1001.5156))
Try that.
Re: Help please... -
Jokerr_mayne - 16.04.2009
yes i wil check it out thanks fore the help anyway greets joker
Re: Help please... -
Jokerr_mayne - 16.04.2009
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 .
Re: Help please... -
Rks25 - 16.04.2009
You got this in if statement.
if(i am there) => say i am not there.
by doing this
if(!iamthere) = if(iamnotthere)
Re: Help please... -
Jokerr_mayne - 16.04.2009
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