- 0
Problema Comenzi
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Roberteu11
Salut tuturor. Ieri am incercat sa bag o conditie ca atunci cand playerul nu este langa masina sa nu o poata incuia. Am fost ajutat de cineva iar acum intampin alta problema. Majoritatea comenzilor de pe serverul meu nu mai merg. Adica atunci cand le folosesc nu apare nimic si nu se intampla nimic. Am cautat peste tot si nu am gasit o rezolvare.
La compilare primesc erorile astea:
Mi s-a spus sa caut ultima comanda de la OnPlayerCommandText. Am cautat-o si cred ca asta este. Comanda Fiind asta:if(strcmp(cmd, "/time", true) == 0) { if(IsPlayerConnected(playerid)) { new mtext[20]; new year, month,day; getdate(year, month, day); if(month == 1) { mtext = "January"; } else if(month == 2) { mtext = "February"; } else if(month == 3) { mtext = "March"; } else if(month == 4) { mtext = "April"; } else if(month == 5) { mtext = "May"; } else if(month == 6) { mtext = "June"; } else if(month == 7) { mtext = "July"; } else if(month == 8) { mtext = "August"; } else if(month == 9) { mtext = "September"; } else if(month == 10) { mtext = "October"; } else if(month == 11) { mtext = "November"; } else if(month == 12) { mtext = "December"; } new hour,minuite,second; gettime(hour,minuite,second); FixHour(hour); hour = shifthour; format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d:%d~g~|", day, mtext, hour, minuite,second); GameTextForPlayer(playerid, string, 5000, 1); } return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "[Info:] You are not logged in"); return 1; } } SendClientMessage(playerid, COLOR_GREY, "[Error:] Invalid command, type /commands"); return 1; }4 answers to this question
Recommended Posts