#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
TogglePlayerClock(playerid, true);
dcmd(setallweather,13,cmdtext);
stock SetAllWeather(weather) { for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerWeather(i, weather); }
stock clockon(true) { for(new i = 0; i < MAX_PLAYERS; i++) TogglePlayerClock(i, true); } stock clockoff(false) { for(new i = 0; i < MAX_PLAYERS; i++) TogglePlayerClock(i, false); }
dcmd_setallweather(playerid, params[]) { new time,string[128],name[30]; GetPlayerName(playerid, name, 30); time = strval(params); if(!strlen(params)) return SendClientMessage(playerid, 0x33CCFFAA, "USAGE: /setallweather <ID>"); if(tempo > 2009) return SendClientMessage(playerid, 0x33CCFFAA, "Choose an weather lower than 2010"); format(string,sizeof(string),"ADMIN: %s set everyone weather's for %d", name, time); SendClientMessageToAll(0x33CCFFAA, string); clockoff(false); SetAllWeather(time); clockon(true); return 1; }
dcmd_setallweather(playerid, params[])
{
new time,string[128],name[30]; GetPlayerName(playerid, name, 30);
time = strval(params);
if(!strlen(params)) return SendClientMessage(playerid, 0x33CCFFAA, "USAGE: /setallweather <ID>");
if(tempo > 2009) return SendClientMessage(playerid, 0x33CCFFAA, "Choose an weather lower than 2010");
format(string,sizeof(string),"ADMIN: %s set everyone weather's for %d", name, time);
SendClientMessageToAll(0x33CCFFAA, string);
for(new i = 0; i < MAX_PLAYERS; i++) TogglePlayerClock(i, false);
SetAllWeather(time);
for(new i = 0; i < MAX_PLAYERS; i++) TogglePlayerClock(i, true);
return 1;
}
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(103) : warning 217: loose indentation C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(642) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(813) : warning 235: public function lacks forward declaration (symbol "MoneyTimer") C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(835) : warning 219: local variable "true" shadows a variable at a preceding level C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(835) : warning 203: symbol is never used: "true" C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(835 -- 839) : warning 219: local variable "false" shadows a variable at a preceding level C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(839) : warning 203: symbol is never used: "false" C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(849) : error 017: undefined symbol "tempo" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pls help i get these errors
Code:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(103) : warning 217: loose indentation C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(642) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(813) : warning 235: public function lacks forward declaration (symbol "MoneyTimer") C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(835) : warning 219: local variable "true" shadows a variable at a preceding level C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(835) : warning 203: symbol is never used: "true" C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(835 -- 839) : warning 219: local variable "false" shadows a variable at a preceding level C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(839) : warning 203: symbol is never used: "false" C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(849) : error 017: undefined symbol "tempo" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |