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: E:\samp03csvr_win32\gamemodes\sagc.pwn(21479) : error 021: symbol already defined: "SendClientMessage"
E:\samp03csvr_win32\gamemodes\sagc.pwn(21480) : error 010: invalid function or declaration
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;
}