if (PlayerInfo[playerid][pFirstSpawn] == 0)
{
PlayerInfo[playerid][pFirstSpawn] = 1;
SendClientOnScreenText(playerid,MOTD);
SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, "{FF66FF}THIS ISN'T DEATHMATCH - NO RANDOM KILLING! {FFFFFF}Follow the rules or be {FF0000}Kicked{FFFFFF}!");
format(string, sizeof(string), "Welcome To ~y~%s~n~~b~%s~n~~w~Type ~y~/help~w~, ~y~/rules ~w~or~n~~y~/cmds ~w~For Game Info",ServerInfo[sMapName],PlayerInfo[playerid][pName]);
SendClientAnnouncement(playerid,string);
}//SpawnCheck
PlayerInfo[playerid][pResume] = 1;
PlayerInfo[playerid][pSpawn] = 1;
}//SpectateCheck
}//NPCCheck
return 1;
}
SetTimerEx("WelcomeTimer", 10000, false, "i", playerid);
}
forward WelcomeTimer(playerid);
public WelcomeTimer(playerid)
SetTimerEx("WelcomeTimer", 10000, false, "i", playerid);
SetTimerEx("WelcomeTimer", 10000, false, "i", playerid);
}
forward WelcomeTimer(playerid);
public WelcomeTimer(playerid)
{
format(string, sizeof(string), "Welcome To ~y~%s~n~~b~%s~n~~w~Type ~y~/help~w~, ~y~/rules ~w~or~n~~y~/cmds ~w~For Game Info",ServerInfo[sMapName],PlayerInfo[playerid][pName]);
SendClientAnnouncement(playerid,string);
D:\...(11152) : error 029: invalid expression, assumed zero
D:\...(11152) : error 017: undefined symbol "WelcomeTimer"
D:\...(11153) : error 029: invalid expression, assumed zero
D:\...(11153) : error 017: undefined symbol "WelcomeTimer"
D:\...(11173) : error 054: unmatched closing brace ("}")
D:\...(11175) : error 010: invalid function or declaration
forward WelcomeTimer(playerid);
public WelcomeTimer(playerid)
{
format(string, sizeof(string), "Welcome To ~y~%s~n~~b~%s~n~~w~Type ~y~/help~w~, ~y~/rules ~w~or~n~~y~/cmds ~w~For Game Info",ServerInfo[sMapName],PlayerInfo[playerid][pName]);
SendClientAnnouncement(playerid,string);
Do you have this part inside OnPlayerSpawn?
pawn Код:
Better yet, post your OnPlayerSpawn callback here. |