i and str
#1

i'm getting the last couple errors out of my mysql login system. but there's some odd errors i dont know how to fix.

i'm thinking they might be some sort of include i dont have but i'm not familiar with them so. maybe you guys know.

Код:
if(GetPVarInt(playerid, "WrongPass") == 3)
               {
                   SendClientMessage(playerid, 0xF60000AA, "Max password tries exceeded!!");
                   GetPlayerName(i, str, 24); <-----This Line
and this line=> format(str, 100, "**(AUTO KICK)** %s(%d) Failed to login - Registered Playername", str,i);
 			       Kick(playerid);
               }
Код:
Mec-New.pwn(193) : error 017: undefined symbol "i"
Mec-New.pwn(194) : error 017: undefined symbol "str"
Reply
#2

here you go

pawn Код:
if(GetPVarInt(playerid, "WrongPass") == 3)
{
         for(new i=0; i<=MAX_PLAYERS; i++)
    {
        new str[128];
        SendClientMessage(playerid, 0xF60000AA, "Max password tries exceeded!!");
        GetPlayerName(i, str, 24);
        format(str, 100, "**(AUTO KICK)** %s(%d) Failed to login - Registered Playername", str,i);
        Kick(playerid);
    }
}
Reply
#3

thank you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)