Error 017 : Undefined symbol ''params''
#8

yea... I tried what you said, Luka...

This is what my command looks like now :

Quote:

dcmd_makeadmin(playerid, params[]) {

new player[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME], level, giveplayerid, string[128];
if(IsPlayerAdmin(playerid))
{
if (sscanf(params, "p< >s[32]ui", params, giveplayer, level))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, player, sizeof(player));
PlayerInfo[giveplayerid][AdminLvl] = level;
printf("Admin %s made %s a level %d admin.", player, giveplayer, level);
format(string, sizeof(string), "You are now an administrator level %d thanks to %s.", level, player);
SendClientMessage(giveplayerid, 0x00C2ECFF, string);
format(string, sizeof(string), "You have given %s level %d admin.", giveplayer,PlayerInfo[giveplayerid][AdminLvl]);
SendClientMessage(playerid, 0x00C2ECFF, string);
}
else
{
format(string, sizeof(string), "%i is not an active player.", giveplayerid);
SendClientMessage(playerid, 0xE60000FF, string);
return 1;
}
}
else
{
SendClientMessage(playerid, Crvena, "USAGE: /makeadmin [playerid] [level]");
SendClientMessage(playerid, Crvena, "FUNCTION: Player will be an admin.");
return 1;
}
}
else SendClientMessage(playerid, 0xE60000FF, "You are not a lead admin!");
return 1;
}

But, I won't bother you any more. I'm quiting the scripting -.- For those of you that say I didn't try hard enough, I definatly did. For more than 5 days, I'm working on this command -.-' Whatever and however I do it, either it doesn't work, or my login dialog gets messed up... I opened 3 topics with the same question, but no1 seems to understand what I did wrong... Guys that tried to help me, thanks.
Reply


Messages In This Thread
Error 017 : Undefined symbol ''params'' - by .sparkY - 18.11.2010, 15:43
Re: Error 017 : Undefined symbol ''params'' - by JaTochNietDan - 18.11.2010, 15:45
Re: Error 017 : Undefined symbol ''params'' - by .sparkY - 18.11.2010, 15:54
Re: Error 017 : Undefined symbol ''params'' - by Buzzbomb - 18.11.2010, 16:14
Re: Error 017 : Undefined symbol ''params'' - by .sparkY - 18.11.2010, 16:33
Re: Error 017 : Undefined symbol ''params'' - by Ritchie999 - 18.11.2010, 17:59
Re: Error 017 : Undefined symbol ''params'' - by Luka P. - 18.11.2010, 20:14
Re: Error 017 : Undefined symbol ''params'' - by .sparkY - 19.11.2010, 13:38
Re: Error 017 : Undefined symbol ''params'' - by MadeMan - 19.11.2010, 15:13
Re: Error 017 : Undefined symbol ''params'' - by Ritchie999 - 21.11.2010, 14:13

Forum Jump:


Users browsing this thread: 2 Guest(s)