sscanf not allowing commands to work
#10

Quote:
Originally Posted by guitardude01
Посмотреть сообщение
Here is my enum for pInfo, not sure whats wrong with it?
PHP код:
enum PDATA
{
    
Username[32],
    
Password[129], 
    
Admin
    
Helper,
    
Money 
}
new 
pInfo[MAX_PLAYERS][PDATA]; 
seems legid.

so it must be something wrong with the 1st index
what if "playerb" contains a value that cannot be used as index?
usage defined by you:
Quote:
Originally Posted by OP
Usage: /makeadmin [Playerid/part of name] [Level]
so "playerb" is "Playerid/part of name"

why not try "dd" instead of "ui"

pawn Код:
if (sscanf(params, "dd", playerb, level)) return SendClientMessage(playerid, -1, "Usage: /makeadmin [Playerid] [Level]");
i assure you, this will work
Reply


Messages In This Thread
sscanf not allowing commands to work - by guitardude01 - 02.01.2015, 01:05
Re: sscanf not allowing commands to work - by Sledgehammer - 02.01.2015, 01:07
Re: sscanf not allowing commands to work - by Wizzy951 - 02.01.2015, 01:29
Re: sscanf not allowing commands to work - by ATGOggy - 02.01.2015, 05:47
Re: sscanf not allowing commands to work - by guitardude01 - 02.01.2015, 14:39
Re: sscanf not allowing commands to work - by guitardude01 - 02.01.2015, 14:41
Re: sscanf not allowing commands to work - by guitardude01 - 02.01.2015, 14:44
AW: sscanf not allowing commands to work - by CutX - 02.01.2015, 14:49
Re: AW: sscanf not allowing commands to work - by guitardude01 - 02.01.2015, 15:12
AW: Re: AW: sscanf not allowing commands to work - by CutX - 02.01.2015, 15:28

Forum Jump:


Users browsing this thread: 2 Guest(s)