- 0
Problema mesaj la anumit job
-
Similar Content
-
- 4 replies
- 1,112 views
-
- 1 reply
- 338 views
-
Problema turf
By Soryn.,
- 2 answers
- 209 views
-
- 1 reply
- 167 views
-
Problema
By ImJustSlim,
- 3 answers
- 279 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Sprite_RoPlayers
Hai seara buna.
Am si eu urmatoare problema si nu stiu cum as putea sa o rezolv. Vreau ca atunci cand dai la un anumit job sa ii apara si comanda de care are nevoie pentru a folosi acel job ca sa inceapa
Am facut asa eu
else if(j == 16) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament."); Si am incercat si asa else if(j != 16) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament.");
asta este tot ce am in gm
if(PlayerInfo[playerid][pJob] == 0){ for(new j = 1; j < MAX_JOBS; j++) { if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti aceasta comanda dintr-un vehicul!"); if(PlayerToPoint(3.0, playerid, JobInfo[j][jPosX], JobInfo[j][jPosY], JobInfo[j][jPosZ]) && j != 20) { if(PlayerInfo[playerid][pLevel] < JobInfo[j][jLevel]) { format(string, sizeof(string), "Ai nevoie de level %d pentru a lua jobul %s.", JobInfo[j][jLevel], JobInfo[j][jName]); SCM(playerid, COLOR_WHITE, string); return 1; } format(string, sizeof(string), "*Felicitari! Noul tau job este acum %s.", JobInfo[j][jName]); SCM(playerid, COLOR_LIGHTBLUE, string); if(j == 7) SCM(playerid, COLOR_LIGHTBLUE, "Comenzile disponibile pentru acest job sunt: /repair si /refill."); else if(j == 8) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a localiza un player, foloseste comanda /find."); else if(j == 11) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa muncesti ai la dispozitie comanda /fish."); else if(j != 6) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa muncesti, ai la dispozitie comanda /work."); else if(j == 16) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament."); //else if(j !- 16) SCM(playerid, COLOR_LIGHTGREEN,"Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament"); PlayerInfo[playerid][pJob] = j; new str [128]; mysql_format(SQL, str, 128, "UPDATE `users` SET `Job`='%d' WHERE `ID`='%d' LIMIT 1",PlayerInfo[playerid][pJob],PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, str, "", ""); } } }
Dar nu merge ce-ia ce am facut eu si nu stiu cum sa rezolv
Edited by Sprite_RoPlayersLink to comment
Share on other sites
4 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.