I need help quick! - 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: I need help quick! (
/showthread.php?tid=604318)
I need help quick! -
iCurse - 03.04.2016
PHP код:
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(67) : error 055: start of function body without function header
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(68) : error 010: invalid function or declaration
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(69) : error 010: invalid function or declaration
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(70) : error 010: invalid function or declaration
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(71) : error 010: invalid function or declaration
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(72) : error 010: invalid function or declaration
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(73) : error 010: invalid function or declaration
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(283) : warning 203: symbol is never used: "PlayerInfo"
PHP код:
enum pInfo
{
pPassword,
pCash,
pAdmin,
pKills,
pDeaths,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid, name[], value[]);
public LoadUser_data(playerid, name[], value[]);
{
INI_Int("Password", PlayerInfo[playerid][pPassword]);
INI_Int("Cash", PlayerInfo[playerid][pCash]);
INI_Int("Admin", PlayerInfo[playerid][pAdmin]);
INI_Int("Kills", PlayerInfo[playerid][pKills]);
INI_Int("Deaths", PlayerInfo[playerid][pDeaths]);
return 1;
}
Re: I need help quick! -
itsCody - 03.04.2016
PHP код:
enum pInfo
{
pPassword,
pCash,
pAdmin,
pKills,
pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid, name[], value[]);
public LoadUser_data(playerid, name[], value[])
{
INI_Int("Password", PlayerInfo[playerid][pPassword]);
INI_Int("Cash", PlayerInfo[playerid][pCash]);
INI_Int("Admin", PlayerInfo[playerid][pAdmin]);
INI_Int("Kills", PlayerInfo[playerid][pKills]);
INI_Int("Deaths", PlayerInfo[playerid][pDeaths]);
return 1;
}
Re: I need help quick! -
iCurse - 03.04.2016
Oh wow! Fixed, thank you so much Cody. +rep for you ^_^
Re: I need help quick! -
iKevin - 03.04.2016
He didn't do shit lol, the code is the same.
Re: I need help quick! -
SmileyForCheat - 03.04.2016
Quote:
Originally Posted by KevinExec
He didn't do shit lol, the code is the same.
|
no man he removes the comma
Re: I need help quick! -
Karan007 - 03.04.2016
Quote:
Originally Posted by KevinExec
He didn't do shit lol, the code is the same.
|
Icurse's Code:
PHP код:
enum pInfo
{
pPassword,
pCash,
pAdmin,
pKills,
pDeaths, // << This, the comma sign
}
ItsCody's code:
PHP код:
enum pInfo
{
pPassword,
pCash,
pAdmin,
pKills,
pDeaths // << Removed the comma sign
}
ICurse, in the last line of enum you shouldn't add the ',' sign. It'll cause the error.
Re: I need help quick! -
fuckingcruse - 03.04.2016
He even removed the ; from public.
Re: I need help quick! -
iCurse - 03.04.2016
This topic is done lol stop replying xD