Error Fix - 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: Error Fix (
/showthread.php?tid=494956)
Error Fix -
KaliKs - 15.02.2014
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.
Re: Error Fix -
Beckett - 15.02.2014
Show us the whole code the problem is not in this line in the line above or something.
Re: Error Fix -
KaliKs - 15.02.2014
Код:
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
Re: Error Fix -
Beckett - 15.02.2014
The code above THIS.
Код:
SetPlayerSkin(playerid,pInfo[playerid][Skin]);
You probably have a missing ( ; ) or smth.