SA-MP Forums Archive
new error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: new error (/showthread.php?tid=626598)



new error - AndreaSanchez - 17.01.2017

Hello, its next error.

PHP код:
Newreg[playerid] = true
PHP код:
C:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(210) : warning 215expression has no effect
C
:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(210) : error 001expected token";"but found "*"
C:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(210) : error 029invalid expressionassumed zero
C
:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(210) : error 029invalid expressionassumed zero
C
:\Users\Sanchez\Desktop\Justify\script\gamemodes\ucp.pwn(210) : fatal error 107too many error messages on one line 



Re: new error - kloning1 - 17.01.2017

ur script
Код:
Newreg[playerid]*=*true;
WHAT What do you think adding the symbol
Код:
*
replace to
Код:
Newreg[playerid] = true;



Re: new error - AndreaSanchez - 17.01.2017

Quote:
Originally Posted by kloning1
Посмотреть сообщение
ur script
Код:
Newreg[playerid]*=*true;
WHAT What do you think adding the symbol
Код:
*
replace to
Код:
Newreg[playerid] = true;
Damn. Stars in the code no.


Re: new error - kloning1 - 17.01.2017

ok show ur code from 200 - 220


Re: new error - AndreaSanchez - 17.01.2017

Quote:
Originally Posted by kloning1
Посмотреть сообщение
ok show ur code from 200 - 220
PHP код:
        }
        case 
DIALOG_REGISTER:
        {
            if(!
response) return Kick(playerid);
            if(
strlen(inputtext) < 6) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT"Registration""{FFFFFF}Your account does not exist. Please register below\nbefore playing so your statistics save.\n\nYour password must be at least {F05151}6 characters{FFFFFF} long!""Next""Quit");
            
WP_Hash(Player[playerid][Pass], 129inputtext); //hashing inputtext
            
Logged[playerid] = true;
            
Newreg[playerid]*=*false;
            *
            
mysql_format(mysql,*query,*sizeof(query),*"INSERT*INTO*`players`*(`ID`,*`User`,*`Pass`,*`IP`,*`Admin`,*`SkinID`,*`AccountLocked`,*`AccountBanned`,*`BanningAdmin`,*`BannedReason`,*`MoneyHand`,*`MoneyBank`,`Health`,*`Armour`,*`LastActivity`,*`WeaponSlot1`,*`WepSlotAmmo1`,*`WeaponSlot2`,*`WepSlotAmmo2`,*`WeaponSlot3`,*`WepSlotAmmo3`,*`WeaponSlot4`,*`WepSlotAmmo4`,*`WeaponSlot5`,*`WepSlotAmmo5`)\
*            VALUES*('',*'%e',*'%s',*'%s',*0,*299,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*250,*5000,*0,*0,*0,*100.0,*0.0,*0,*0)"
,*GetUserName(playerid),*Player[playerid][Pass],*IP[playerid]);*
            
mysql_query(mysqlquery"CreateUser""i"playerid);
        }
    }
    return 
false;

Without Stars.