SA-MP Forums Archive
if Problem! - 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)
+--- Thread: if Problem! (/showthread.php?tid=595249)



if Problem! - norton2 - 30.11.2015

SOLVED!
AbyssMorgan thank you.


Re: if Problem! - AbyssMorgan - 30.11.2015

PHP код:
if(IsPlayerInRangeOfPoint(i3.01766.7555,-1895.6991,14.4298) && (pProdType[i] != || GetPVarInt(i"BoX") != 1))

    
SetPlayerPos(i1772.7676,-1895.6788,13.5522);
    
SendClientMessage(playerid, -1"Set a position!");
        
printf("pType: %d"pProdType[i]);
        
printf("VarpType: %d"GetPVarInt(i"BoX"));

PHP код:
IsPlayerInRangeOfPoint(i3.01766.7555,-1895.6991,14.4298) - true
pProdType
[i] != true
GetPVarInt
(i"BoX") != true
true 
&& (true || true) - true
IsPlayerInRangeOfPoint
(i3.01766.7555,-1895.6991,14.4298) - true
pProdType
[i] != false
GetPVarInt
(i"BoX") != true
true 
&& (false || true) - true 
Fix:
PHP код:
if(IsPlayerInRangeOfPoint(i3.01766.7555,-1895.6991,14.4298) && pProdType[i] != && GetPVarInt(i"BoX") != 1){ 
    
SetPlayerPos(i1772.7676,-1895.6788,13.5522);
    
SendClientMessage(playerid, -1"Set a position!");
    
printf("pType: %d"pProdType[i]);
    
printf("VarpType: %d"GetPVarInt(i"BoX"));

true && true && false - false