10.05.2013, 10:30
hello can you fix this bug ?
i make /myweather script
but it failed beause if i use /myweather it show
after i use /myweather 1
help me, i want make if i type /myweather
it show /myweather (weather id)
i make /myweather script
but it failed beause if i use /myweather it show
Code:
INFO:You Was Changed You Weather To : (nothing)
Code:
INFO:You Was Changed You Weather To : 1
it show /myweather (weather id)
pawn Code:
if(strcmp(cmd, "/myweather", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext,idx);
SetPlayerWeather(playerid,strval(tmp));
format(tmp, sizeof(tmp), "{FF8000}INFO:{B7FF00}You Was Changed You Weather To :{FF8000} %s", tmp);
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "{FF8000} %s{C0C0C0} has used {FF8000} /myweather", str);
SendClientMessageToAll(0xFFFF00AA, str);
SendClientMessage(playerid, COLOR_RED, tmp);
return 1;
}