is this line make any sense? - 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: is this line make any sense? (
/showthread.php?tid=92248)
is this line make any sense? -
nuriel8833 - 19.08.2009
pawn Код:
new otherplayerid = strval(tmp)
if(!IsPlayerConnected(otherplayerid) return 0;
if(!otherplayerid = playerid) GivePlayerMoney(otherplayerid,10000)
this line is bigger problem for me:
pawn Код:
if(!otherplayerid = playerid) GivePlayerMoney(otherplayerid,10000)
help
Re: is this line make any sense? -
Butilka - 19.08.2009
Tell us what are you going to do.
Re: is this line make any sense? -
Gamer_Z - 19.08.2009
if u get an error i suggest you make
pawn Код:
if(!otherplayerid = playerid) GivePlayerMoney(otherplayerid,10000)
to
pawn Код:
if(!otherplayerid == playerid){GivePlayerMoney(otherplayerid,10000)}// brackets just for case... xD
or to
pawn Код:
if(otherplayerid != playerid){GivePlayerMoney(otherplayerid,10000)}// brackets just for case... xD
Re: is this line make any sense? -
nuriel8833 - 19.08.2009
Quote:
Originally Posted by gamer_Z
if u get an error i suggest you make
pawn Код:
if(!otherplayerid = playerid) GivePlayerMoney(otherplayerid,10000)
to
pawn Код:
if(!otherplayerid == playerid){GivePlayerMoney(otherplayerid,10000)}// brackets just for case... xD
|
OK and except that everything is fine?
ohh and i think you forgot ; in the end:
pawn Код:
if(!otherplayerid == playerid){GivePlayerMoney(otherplayerid,10000)};