2 Player To Points, 1 Command
#9

Quote:
Originally Posted by adsy
similar to what ive been doing by the sounds of it

http://forum.sa-mp.com/index.php?top...4916#msg844916

Код:
    if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){
     if(!strcmp("/lift", cmd)) { //Works with or without the !
        SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
     }
    }
id just place a line like this in:

Код:
    if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391) || IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){ //HERE!!
     if(!strcmp("/lift", cmd)) { //Works with or without the !
        SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
     }
    }
note the ||

that means or
Why are you helping people if you have no idea what you are doing? Sidhu comes to on msn wondering why it doesnt work, he shows me this topic and I do a facepalm.

Example:

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){
     if(!strcmp("/lift", cmd)) { //Works with or without the !
When has a if statement ever come above the command? I mean, really? My first day of scripting I knew better than this, its just fuckin common scense. You dont even know how to do a command correctly.
pawn Код:
if(!strcmp("/lift", cmd)) //Works with or without the !
I believe it is...

pawn Код:
if(strcmp(cmdtext, "/lift", true, 5) == 0)
Those are totally different. In yours, you forgot the "true" and the ammount of letters which means it will definitely not work.
Oh wait
Quote:

//Works with or without the !

Yea.... lets try
pawn Код:
if(strcmp("/lift", cmd))
That makes a difference.

Im sorry if Im being harsh but some people on this forum actually need the code right or they will not understand so we dont need noobs like you giving false information.

http://wiki.sa-mp.com

kthx
Reply


Messages In This Thread
2 Player To Points, 1 Command - by sidhu123 - 22.12.2009, 21:55
Re: 2 Player To Points - by Nero_3D - 22.12.2009, 22:03
Re: 2 Player To Points, 1 Command - by adsy - 22.12.2009, 22:04
Re: 2 Player To Points - by sidhu123 - 22.12.2009, 22:29
Re: 2 Player To Points, 1 Command - by sidhu123 - 22.12.2009, 22:51
Re: 2 Player To Points, 1 Command - by adsy - 22.12.2009, 23:22
Re: 2 Player To Points, 1 Command - by sidhu123 - 22.12.2009, 23:25
Re: 2 Player To Points, 1 Command - by adsy - 22.12.2009, 23:36
Re: 2 Player To Points, 1 Command - by lolumadd - 22.12.2009, 23:46
Re: 2 Player To Points, 1 Command - by sidhu123 - 23.12.2009, 00:04

Forum Jump:


Users browsing this thread: 1 Guest(s)