Jump to content
  • 0

Problemă Cmd:rob


AndrewDre

Question

Problemă întâlnită (descriere):Vreau să modific sistemul de rob.
Ero(area / rile) / warning-(ul / urile):destule
Liniile de cod / sursa / script-ul:.
Imagini / Video (optional): original :  http://pastebin.com/kV9N46Uj

                                          păstrate doar cele ce-mi trebuie:  http://pastebin.com/3qgpq4WL

                                          erori : http://iceimg.com/MqTP
Aţi încercat să rezolvaţi singur?:Da.

 

As vrea să-l transform intr-un sistem simplu, fără masină si fără importanta cu cine sunt si cati suntem in masina. 

Edited by AndrewDre
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

Ai 2 solutii.

 

1. Sa faci pentru fiecare checkpoint cate o verificare, if si dupa else if.

2. Sa faci niste variabile care sa memoreze coordonatele X, Y si Z ale checkpoint-ului unde trebuie sa ajunga player-ul si sa el folosesti in IsPlayerInRangeOfPoint.

Link to comment
Share on other sites

Vezi ca ai un else care nu are ce cauta pe acolo

[pawn]if(PlayerInfo[pRob] >= 10)

{

CP = 50;

SetPlayerCheckpoint(i, x,y,z, 4.0);

SendClientMessage(i, COLOR_YELLOW,"Go to checkpoint to finish breaking the bank.");

SetPlayerWantedLevel(i, 6);

WantedPoints = 12;

SetPlayerCriminal(i,255, "Robbed the bank.");

BizzInfo[1][bProducts] -= 10;

PlayerInfo[pRob] -= 10;

new str[184];

Update(i,pRobx);

Update(i,pWantedLevelx);

format(str,sizeof(str),"UPDATE `bizz` SET `Products`='%d' WHERE `ID`='1'",BizzInfo[1][bProducts]);

mysql_query(SQL,str);

}[/pawn]

Link to comment
Share on other sites

Vezi ca ai un else care nu are ce cauta pe acolo

[pawn]if(PlayerInfo[pRob] >= 10)

{

CP = 50;

SetPlayerCheckpoint(i, x,y,z, 4.0);

SendClientMessage(i, COLOR_YELLOW,"Go to checkpoint to finish breaking the bank.");

SetPlayerWantedLevel(i, 6);

WantedPoints = 12;

SetPlayerCriminal(i,255, "Robbed the bank.");

BizzInfo[1][bProducts] -= 10;

PlayerInfo[pRob] -= 10;

new str[184];

Update(i,pRobx);

Update(i,pWantedLevelx);

format(str,sizeof(str),"UPDATE `bizz` SET `Products`='%d' WHERE `ID`='1'",BizzInfo[1][bProducts]);

mysql_query(SQL,str);

}[/pawn]

mulțumesc, dar mai am o singură problemă : http://i.imgur.com/dhQBfkF.png , din câte stiu deasupra la „cp = 5 ” trebuie pus new i = cu ceva, dar nu stiu cu ce.

Link to comment
Share on other sites

Daca le pui random la IsPlayerInRangeOfPoint exista o sansa sa nu ii mearga rob-ul jucatorului.

Atunci cum ar fi mai bine să fac? In locul IsPlayerInRangeOfPoint era IsPlayerInAnyVehicle iar acest lucru vreau să-l scot. Vreau să pun simplu, fără să trebuiască să fiu intr-un vehiclu.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.