Error Fix
#1

hey guys i got a question erm i have no idea it should work but it dosent...

Код:
SetPlayerSkin(playerid,pInfo[playerid][Skin]);
Errors:
Код:
C:\Users\Erik\Desktop\0.3z FDRP\gamemodes\test.pwn(129) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\Erik\Desktop\0.3z FDRP\gamemodes\test.pwn(129) : warning 215: expression has no effect
C:\Users\Erik\Desktop\0.3z FDRP\gamemodes\test.pwn(129) : error 001: expected token: ";", but found "]"
C:\Users\Erik\Desktop\0.3z FDRP\gamemodes\test.pwn(129) : error 029: invalid expression, assumed zero
C:\Users\Erik\Desktop\0.3z FDRP\gamemodes\test.pwn(129) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Show us the whole code the problem is not in this line in the line above or something.
Reply
#3

Код:
	SetPlayerSkin(playerid,pInfo[playerid][Skin]);
	if(fexist(UserPath(playerid)))
    {
    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    PosX[ playerid ] = 0;
    PosY[ playerid ] = 0;
    PosZ[ playerid ] = 0;
    Angle[ playerid ] = 0;
    Interior[ playerid ] = 0;
    VirtualWorld[ playerid ] = 0;

    INI_ParseFile( user_ini_file( playerid ), "load_user_%s", .bExtra = true, .extra = playerid );
the whole code
Reply
#4

The code above THIS.

Код:
SetPlayerSkin(playerid,pInfo[playerid][Skin]);
You probably have a missing ( ; ) or smth.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)