23.07.2013, 10:50
When i type /myweather it always returns me the message that i have to use: /myweather [wheatherid] ?
pawn Код:
if (strcmp(cmd, "/myweather", true) == 0)
{
if(pInfo[playerid][VIPlevel] >= 1) {
new weather;
if ( sscanf( cmd, "d", weather ) ) return SendClientMessage( playerid, COLOR_WHITE, "Use: {FFFF00}/myweather [weatherid]" );
if ( ( weather < 0 ) || ( weather > 52 ) ) return SendClientMessage( playerid, COLOR_WHITE, "asd 0 asd 52!" );
SetPlayerWeather( playerid, weather );
format( string, sizeof( string ), "asdasdasdas {E60000}%d", weather );
SendClientMessage( playerid, COLOR_YELLOW, string );
}
return 1;
}