5 errors
#6

Quote:
Originally Posted by Krauser366
Посмотреть сообщение
There you go.

Код:
enum pInfo
{
    pScore
}
new PlayerInfo[ MAX_PLAYERS ][ pInfo ];

stock GetName(playerid)
{
     new name[ MAX_PLAYER_NAME+1 ];
     GetPlayerName(playerid, name, sizeof( name ));
     return name;
}
I've just used the above code and got 0 errors... if you've declared the variable new file[256]; and still got errors please re-download the dini include, that should fix it. the code i used based on what you gave me:
PHP код:
#define FILTERSCRIPT
#include <a_samp>
#include <dini>
new file[256];
enum pInfo
{
    
pScore
}
new 
PlayerInfoMAX_PLAYERS ][ pInfo ];
stock GetName(playerid)
{
     new 
nameMAX_PLAYER_NAME+];
     
GetPlayerName(playeridnamesizeofname ));
     return 
name;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
dini_IntSetfile"Score"PlayerInfoplayerid ][ pScore ]);
    return 
1;

Reply


Messages In This Thread
5 errors - by Krauser366 - 11.12.2017, 01:05
Re: 5 errors - by RogueDrifter - 11.12.2017, 01:24
Re: 5 errors - by Krauser366 - 11.12.2017, 01:36
Re: 5 errors - by RogueDrifter - 11.12.2017, 02:09
Re: 5 errors - by Krauser366 - 11.12.2017, 02:37
Re: 5 errors - by RogueDrifter - 11.12.2017, 03:09
Re: 5 errors - by Krauser366 - 11.12.2017, 03:16
Re: 5 errors - by RogueDrifter - 11.12.2017, 03:27
Re: 5 errors - by Krauser366 - 11.12.2017, 03:36
Re: 5 errors - by RogueDrifter - 11.12.2017, 04:00

Forum Jump:


Users browsing this thread: 2 Guest(s)