SA-MP Forums Archive
One 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: One error (/showthread.php?tid=375586)



One error - rumen98 - 07.09.2012

PHP код:
C:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : error 001expected token")"but found "["
C:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : warning 215expression has no effect
C
:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : error 001expected token";"but found "]"
C:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : error 029invalid expressionassumed zero
C
:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

here is error and here is line 293
PHP код:
    INI_String("Password"PlayerInfo[playerid][Pass], 129); 
im follow this totorial Link
but give me this errors


Re: One error - mobiliz - 07.09.2012

Don't know about INI_String but try
pawn Код:
INI_String("Password", PlayerInfo[playerid][Pass]);



Re: One error - rumen98 - 07.09.2012

Quote:
Originally Posted by mobiliz
Посмотреть сообщение
Don't know about INI_String but try
pawn Код:
INI_String("Password", PlayerInfo[playerid][Pass]);
i will try now


Re: One error - Glint - 07.09.2012

Quote:
Originally Posted by mobiliz
Посмотреть сообщение
Don't know about INI_String but try
pawn Код:
INI_String("Password", PlayerInfo[playerid][Pass]);
I don't think that will work because INI_String needs a size parameter you put at last, can you please post two lines before this and two lines after ?


Re: One error - rumen98 - 07.09.2012

Quote:
Originally Posted by Lexi'
Посмотреть сообщение
I don't think that will work because INI_String needs a size parameter you put at last, can you please post two lines before this and two lines after ?
PHP код:
public LoadUserData(playeridname[], value[]) 

    
INI_String("Password"PlayerInfo[playerid][Pass],[129]);
    
INI_Int("Cash"PlayerInfo[playerid][Cash]);
    
INI_Int("Admin"PlayerInfo[playerid][Admin]);
    
INI_Int("Kills"PlayerInfo[playerid][Kills]);
    
INI_Int("Deaths"PlayerInfo[playerid][Deaths]);
    
INI_Int("Xp"PlayerInfo[playerid][Xp]);
    
INI_Int("Infect"PlayerInfo[playerid][Infect]);
    
INI_Int("Rank"PlayerInfo[playerid][Rank]);
    
INI_Int("Mute"PlayerInfo[playerid][Mute]);
    
INI_Int("Vote"PlayerInfo[playerid][Vote]);
    
INI_Int("Credits"PlayerInfo[playerid][Credits]);
    
INI_Int("ArmourUpgrade"PlayerInfo[playerid][Armour]);
    
INI_Int("Online"PlayerInfo[playerid][Online]);
    return 
1

this is funcion


Re: One error - Glint - 07.09.2012

This
pawn Код:
INI_String("Password", PlayerInfo[playerid][Pass],[129]);
Must be
pawn Код:
INI_String("Password", PlayerInfo[playerid][Pass], 129);
Try now


Re: One error - rumen98 - 07.09.2012

Quote:
Originally Posted by Lexi'
Посмотреть сообщение
This
pawn Код:
INI_String("Password", PlayerInfo[playerid][Pass],[129]);
Must be
pawn Код:
INI_String("Password", PlayerInfo[playerid][Pass], 129);
Try now
PHP код:
C:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : error 001expected token")"but found "["
C:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : warning 215expression has no effect
C
:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : error 001expected token";"but found "]"
C:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : error 029invalid expressionassumed zero
C
:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

again this erros


Re: One error - mobiliz - 07.09.2012

Wont it work if you change the string to

INI_Int("Password", PlayerInfo[playerid][Pass]);
?


Re: One error - Cjgogo - 07.09.2012

Quote:
Originally Posted by mobiliz
Посмотреть сообщение
Wont it work if you change the string to

INI_Int("Password", PlayerInfo[playerid][Pass]);
?
HOW CAN you say such a thing?Sorry to tell you, but if you have no experience with Y_INI, then don't talk.A password being saved as a numeric value?STOP messing up with posting if you don't know what's all about.AND rumen, use a hash system, or nobody from SAMP comunity will join your server, because of being afraid of pass-steal.


Re: One error - rumen98 - 07.09.2012

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
HOW CAN you say such a thing?Sorry to tell you, but if you have no experience with Y_INI, then don't talk.A password being saved as a numeric value?STOP messing up with posting if you don't know what's all about.AND rumen, use a hash system, or nobody from SAMP comunity will join your server, because of being afraid of pass-steal.
im follow this tutorial link
And give me this errors