lil' help here
#1

hummm sscanf prob
pawn Код:
dcmd_lockserver(playerid,params[])
{
    new string[128],pName[MAX_PLAYER_NAME],password;
    if(PInfo[playerid][Level] < 5) return level(playerid,5);
    if(sscanf(params,"s",password)) return SendClientMessage(playerid,ORANGE,"USAGE: /lockserver [password]");
    GetPlayerName(playerid,pName,sizeof(pName));
    ServerInfo[ServerPass] = password;
    ServerInfo[ServerLocked] = 1;
    format(string,sizeof(string),"Server: %s has locked the server",pName);
    SendClientMessageToAll(YELLOW,string);
    return 1;
}
Reply
#2

It's not a sscanf problem, its a "your fault" problem.

pawn Код:
if(sscanf(params,"s[128]",password))
Reply
#3

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
It's not a sscanf problem, its a "your fault" problem.

pawn Код:
if(sscanf(params,"s[128]",password))
when i mean prob i mean im having a prob i didnt refer has a sscanf fault -.-
Reply
#4

Quote:
Originally Posted by dark_clown
Посмотреть сообщение
when i mean prob i mean im having a prob i didnt refer has a sscanf fault -.-
He told you the reason why it's giving that, now don't be a hard head and do what he says.
Reply
#5

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
He told you the reason why it's giving that, now don't be a hard head and do what he says.
wait waa?
i know its my fault, and i was explaining what i refered so im not being such a hard head
and iv never heared the expresion
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)