storing string into varialbe issue, help
#1

pawn Код:
COMMAND:forcemode(playerid, params[])
{
    if (PlayerInfo[playerid][pAdminLevel] >=3)
    {
    new text[64],string[50];
    if (sscanf(params, "s[64]", text)) SendClientMessage(playerid, COLOR_GOLD, "Usage: /forcemode <modename>");
    storedforcedmode = floatstr(string[50]);
    SetTimer("forcedtochange", 535000,0);
    }
    return 1;
}
forward forcedtochange(playerid);
public forcedtochange(playerid)
{
    SendRconCommand(storedforcedmode);
    return 1;
}
pawn Код:
C:\Users\HIJOL  GOSWAMI\Mini Modes Server 0.3b\filterscripts\ServerR.pwn(863) : error 032: array index out of bounds (variable "string")
C:\Users\HIJOL  GOSWAMI\Mini Modes Server 0.3b\filterscripts\ServerR.pwn(871) : error 035: argument type mismatch (argument 1)
C:\Users\HIJOL  GOSWAMI\Mini Modes Server 0.3b\filterscripts\ServerR.pwn(863) : warning 204: symbol is assigned a value that is never used: "storedforcedmode"
Help?
Reply


Messages In This Thread
storing string into varialbe issue, help - by Hijolion - 04.10.2010, 22:51
Re: storing string into varialbe issue, help - by LarzI - 04.10.2010, 23:53
Re: storing string into varialbe issue, help - by samgreen - 05.10.2010, 00:00
Re: storing string into varialbe issue, help - by Hijolion - 06.10.2010, 00:18
Re: storing string into varialbe issue, help - by Voldemort - 06.10.2010, 06:03
Re: storing string into varialbe issue, help - by LarzI - 06.10.2010, 08:10
Re: storing string into varialbe issue, help - by Hijolion - 06.10.2010, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)