AlexuTzuBss Posted June 17, 2018 Report Share Posted June 17, 2018 Salut, am asta https://pastebin.com/ieEyHQVM si am erori la case 1,2 ,3 https://pastebin.com/6XMdXF2J Nu imi dau seama ce sa le fac. Quote Link to comment Share on other sites More sharing options...
0 RusKo69 Posted June 17, 2018 Report Share Posted June 17, 2018 Nu prea ma pricep dar cred ca e asa tu ai: SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0) Checkpoint[playerid] ++; Eu zic ca e SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0), Checkpoint[playerid] ++; Cel putin mie daca nu pun , imi da eroare Quote Link to comment Share on other sites More sharing options...
0 ionutdrg45 Posted June 19, 2018 Report Share Posted June 19, 2018 On 6/17/2018 at 10:52 AM, AlexuTzuBss said: Salut, am asta https://pastebin.com/ieEyHQVM si am erori la case 1,2 ,3 https://pastebin.com/6XMdXF2J Nu imi dau seama ce sa le fac. ti-a dat @RusKo69 raspunsul mai sus, ai 2 variante ori le pui asa : SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0), Checkpoint[playerid] ++; sau le pui { SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0); Checkpoint[playerid] ++; }, pentru ca compilatorul nu are de unde sa stie ca trebuie sa execute ambele lucruri daca nu pui ceva care sa ii indice asta Quote Link to comment Share on other sites More sharing options...
0 MiritaXD Posted June 19, 2018 Report Share Posted June 19, 2018 (edited) public OnPlayerEnterCheckpoint(playerid) { new string[128]; Checkpoint[playerid] ++; switch(Checkpoint[playerid]) { case 1: { DisablePlayerCheckpoint(playerid); Checkpoint[playerid] = 0; SCM(playerid, -1, "Foloseste /work."); return 1; } case 2: SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0); case 3: SetPlayerCheckpoint(playerid, 2561.8125,1561.8441,10.8203, 3.0); case 4: SetPlayerCheckpoint(playerid, 2581.3254,1060.5686,11.7751, 3.0); case 5: SetPlayerCheckpoint(playerid, 2239.0520,1285.5895,10.8203, 3.0); case 6: SetPlayerCheckpoint(playerid, 1029.3654,2005.4865,11.4609, 3.0); case 7: SetPlayerCheckpoint(playerid, 1030.8094,2028.4299,11.4683, 3.0); case 8: SetPlayerCheckpoint(playerid, 984.5137,2030.2045,11.4688, 3.0); case 9: SetPlayerCheckpoint(playerid, 1084.3754,2032.0221,11.4683, 3.0); case 10: SetPlayerCheckpoint(playerid, 1085.4152,2000.8522,11.4609, 3.0); case 11: SetPlayerCheckpoint(playerid, 1084.5104,1976.9949,11.4688, 3.0); case 12: SetPlayerCheckpoint(playerid, 2556.8208,2022.3246,10.8176, 3.0); case 13: SetPlayerCheckpoint(playerid, 2018.5828,2766.5452,10.8265, 3.0); case 14: { DisablePlayerCheckpoint(playerid); Checkpoint[playerid] = 0; new money 50000 + random(70000); GivePlayerMoney(playerid, money); format(string, sizeof(string), "Salariul tau este de $%d", money); SCM(playerid, 0xD4FF00FF, string); FinishJob(playerid); } } return 1; } Edited June 19, 2018 by MiritaXD Quote Link to comment Share on other sites More sharing options...
Question
AlexuTzuBss
Salut, am asta https://pastebin.com/ieEyHQVM si am erori la case 1,2 ,3 https://pastebin.com/6XMdXF2J
Nu imi dau seama ce sa le fac.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.