Help witch error's - 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: Help witch error's (
/showthread.php?tid=518577)
Help witch error's -
SpowneR - 10.06.2014
Hello I'm got a erro'r, please help.
Code
Код HTML:
if( !zInfo[ playerid ][ uniform ] ) - Tahts a error line.
{
zInfo[ playerid ][ drabuziai ] = GetPlayerSkin( playerid );
}
Error:
Код HTML:
C:\Users\evanas\Desktop\MANO IR SIMO PROJEKTAS\KURIAMAS PROJĖKTAS\gamemodes\RLIFE.pwn(1305) : error 017: undefined symbol "zInfo"
C:\Users\evanas\Desktop\MANO IR SIMO PROJEKTAS\KURIAMAS PROJĖKTAS\gamemodes\RLIFE.pwn(1305) : warning 215: expression has no effect
C:\Users\evanas\Desktop\MANO IR SIMO PROJEKTAS\KURIAMAS PROJĖKTAS\gamemodes\RLIFE.pwn(1305) : error 001: expected token: ";", but found "]"
C:\Users\evanas\Desktop\MANO IR SIMO PROJEKTAS\KURIAMAS PROJĖKTAS\gamemodes\RLIFE.pwn(1305) : error 029: invalid expression, assumed zero
C:\Users\evanas\Desktop\MANO IR SIMO PROJEKTAS\KURIAMAS PROJĖKTAS\gamemodes\RLIFE.pwn(1305) : 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: Help witch error's -
Rufio - 10.06.2014
Did you define "zInfo" in your PAWN ? Search for zInfo using CTRL+F and copy-paste your "enum zInfo" or "new zInfo" here, if there isn't that is something to do with zInfo not being defined. Hope this one helps.
Re: Help witch error's -
SpowneR - 10.06.2014
Thank's that's helped. +r3p
Re: Help witch error's -
Rittik - 10.06.2014
Код:
enum lol
{
drabuziai,
uniform
}
new zInfo[MAX_PLAYERS][lol];
Under OnPlayerConnect
Код:
zInfo[ playerid ][ uniform ]=0;
then under you command
Код:
if( zInfo[ playerid ][ uniform ]==0 ) - Tahts a error line.
{
zInfo[ playerid ][ drabuziai ] = GetPlayerSkin( playerid );
}