Comparing string :(
#10

Quote:
Originally Posted by Cell_
Посмотреть сообщение
NO! MAX_GROUPS will not work! Try:
pawn Код:
if (strcmp(GroupInfo[groupid][gLeader], sendername(playerid)) == 0)
where groupid is the id you want to destroy. For example:
pawn Код:
CMD:destroygroup(playerid, params[])
{
    new groupid;
    if(sscanf("i", groupid))
    {
        ...;
    }

    if(!strcmp(GroupInfo[groupid][GroupInfo], sendername(playerid)))
    {
        Code to destroy here
    }
}
pawn Код:
new groupid;
    new groupid;
    if(sscanf(params,"i", groupid))
This? I'll try
Reply


Messages In This Thread
Comparing string :( - by Rudy_ - 15.10.2014, 12:34
Re: Comparing string :( - by Anzipane - 15.10.2014, 12:39
Re: Comparing string :( - by Rudy_ - 15.10.2014, 12:45
Re: Comparing string :( - by Anzipane - 15.10.2014, 12:47
Re: Comparing string :( - by Cell_ - 15.10.2014, 12:50
Re: Comparing string :( - by Rudy_ - 15.10.2014, 12:51
Re: Comparing string :( - by Rudy_ - 15.10.2014, 12:53
Re: Comparing string :( - by Blunt - 15.10.2014, 12:54
Re: Comparing string :( - by Cell_ - 15.10.2014, 13:21
Re: Comparing string :( - by Rudy_ - 15.10.2014, 13:29

Forum Jump:


Users browsing this thread: 7 Guest(s)