06.08.2012, 15:17
i want to use this command once per round. i added the command /votemap in the callback in which round starts. but it is showing an error.
pawn Код:
(555) : error 017: undefined symbol "cmdtext"
pawn Код:
public StartedNewRound(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SpawnPlayer ( i ) ;
switch ( Map )
{
case 0:{
GameMinutes =5;
GameSeconds =0;
if(!strcmp(cmdtext, "/votemap", true))
{
ShowPlayerDialog(playerid,GM,DIALOG_STYLE_LIST,"[SvR] Map Voting"," Map 1: \n Map 2: \n Map 3:\n Map 4:\n Map 5:\n Map 6: \n Map 7:","Select","Cancel");
}
else return SendClientMessage(playerid, 0x0259EAAA, "you can use this command once per round!");
}