|
|
|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Sep 2011
Location: Belgium, Antwerpen
Posts: 161
Reputation: 7
|
Hey,
ik heb deze code: Code:
CMD:wpickup(playerid, params[])// Rebellen wapen pickup command
{
if(IsPlayerInRangeOfPoint(playerid, 10.0,1073.1725,-345.5271,73.9922) || (PlayerInfo[playerid][pTeam] == 1))
{
ShowPlayerDialog(playerid, WEAPON_DIALOG_1, DIALOG_STYLE_LIST, "Weapon Pickup", "Deagle \nShotgun \nAK-47 \nRPG ", "Select", "Exit");
}
else
{
SendClientMessage(playerid, -1, "Your not at the weapon pickup OR you are not the good team!");
}
return 1;
}
Weet iemand hoe dit kan komen? Ik heb de lijn vet gezet waarvan ik denk dat er iets mis is. Mvg, Jordy Van Camp |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2010
Location: North Brabant, The Netherlands
Posts: 1,121
Reputation: 1084
|
|| betekent OF
&& betekent EN Je zegt nu dus: De player is op de positie, dus krijgt deze het wapen. Als je && gebruikt, moet de player ook in het team zitten Je moet het dus zo doen:pawn Code:
|
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: Sep 2011
Location: Belgium, Antwerpen
Posts: 161
Reputation: 7
|
Ah oke bedankt!!! +REP
|
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Apr 2009
Location: Brugge, Belgium
Posts: 809
Reputation: 1021
|
Deze interesseert je misschien wel:
http://forum.sa-mp.com/showpost.php?...2&postcount=51 Het begin, over short-circuiting. |
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2012
Location: Belgium
Posts: 554
Reputation: 12
|
Dit kan ook werken:
pawn Code:
|
|
|
|
|
|
#6 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2010
Location: The Netherlands
Posts: 712
Reputation: 391
|
Quote:
Waarom post je dit, als je er zelf geen bal van snapt? |
|
|
|
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2009
Location: The Netherlands
Posts: 1,341
Reputation: 119
|
|
|
|
|
|
|
#8 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Apr 2009
Location: Brugge, Belgium
Posts: 809
Reputation: 1021
|
Trouwens, Grammar Nazi.
Het is "You're not at the weapon pickup" Ik denk dat deze fout wel belangrijk is, aangezien je je server waarschijnlijk wel een professionele look wilt geven? |
|
|
|
|
|
#9 |
|
Banned
![]() Join Date: Nov 2009
Location: The Netherlands
Posts: 624
Reputation: 24
|
Wat BlackBank3 zeg, en je verbruikt onnodige lines. Waarom moeilijk doen als het super simpel kan..
|
|
|
|
|
|
#10 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2009
Location: 127.0.0.1 duhh
Posts: 835
Reputation: 131
|
vooral post count waarschijnlijk 200 posts en niet een rep. kan weinig goeds zijn me dunkt..
http://wiki.sa-mp.com/wiki/Scripting...s_NL#Condities is misschien ook een must-read
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|