14.05.2014, 00:01
Код:
error 017: undefined symbol "Horas" error 017: undefined symbol "PlayerTextDrawSetString"
Код:
CMD:setweather(playerid,params[])
{
if(User[playerid][USER_ADMIN] >= 2 || IsPlayerAdmin(playerid))
{
new weather,string[128];
if(sscanf(params, "i", weather)) return SendClientMessage(playerid,-1,""chat" /setweather [id]");
SetWeather(weather);
if(IsPlayerAdmin(playerid))
{
format(string, sizeof(string), ""chat""COL_RED" Tempo Alterado para %d",Horas);
SendClientMessageToAll(-1,string);
}
else
{
format(string, sizeof(string), ""chat""COL_RED" %s %s has changed the weather to %d",GetAdminName(playerid),PlayerName(playerid),weather);
SendClientMessageToAll(-1,string);
}
}
else
{
SendClientMessage(playerid,-1,""chat""COL_RED" Vocк nгo tem as permissхes de administrador certas para este comando!");
}
return 1;
}
Код:
format(InfoString, sizeof(InfoString), "Ping: ~w~%d", tdping); PlayerTextDrawSetString(playerid, ping[playerid], InfoString);


