errors
#1

pawn Код:
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\LSC\gamemodes\sgrp.pwn(34889) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\LSC\gamemodes\sgrp.pwn(34889) : warning 215: expression has no effect
the line:
pawn Код:
if(PlayerInfo[i][pFacRank] == 1) {finalpaycheck = finalpaycheck * 50 (125/100);}
Reply
#2

You aren't doing anything between "50" and "(125/100)". You need to put some math operation in there, for example:
pawn Код:
finalpaycheck = finalpaycheck * 50 + (125/100);
Or just get rid of it:
pawn Код:
finalpaycheck = finalpaycheck * 50;
Reply
#3

Guys, i found another bug in my script.
People can still login if they don't type the right password.
How to fix it?
My login
pawn Код:
else if(dialogid == 2) // Login
    {
        if(response)
        {
            new file[64], password[256], IP[16], password2[256];
            format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
            WP_Hash(password2, sizeof(password2), inputtext);
            format(password, sizeof(password), "%s", dini_Get(file, "Password"));
            if(strcmp(password, inputtext,true) && strcmp(password, password2, true))
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Invalid password.");
                ShowDialog(playerid, 2);
                return 1;
            }
Reply
#4

Help??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)