scoverga
-
Posts
2 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by scoverga
-
-
Încearcă asta şi spune-mi dacă merge:
[pawn]if(strcmp(cmd, "/tod", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GRAD1, "{5CAD5C}Error: Your admin level isn't high enough to use this command.");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Syntax: /tod [timeofday] (0-23)");
new hour;
hour = strval(tmp);
SetWorldTime(hour);
format(string, sizeof(string), " Time set to %d Hours.", hour);
BroadCast(COLOR_GRAD1, string);
return 1;
} [/pawn]
p.s: nu-ţi trebuie IsPlayerConnected la asta, mai ales că în parametri nu ceri nici un playerid. ce faci tu acolo era un fix pentru un bug din SA-MP 0.1b când comenzile trimise de cineva puteau fi executate după ce au plecat de pe server, dar au trecut ceva ani de atunci :)
Problema mysql
in Arhivă probleme
Posted
dandrew12, DROP = şterge. Nu mai copia orbeşte în viitor fără să ştii ce copiezi.