I need help quick!
#1

PHP код:
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(67) : error 055start of function body without function header
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(68) : error 010invalid function or declaration
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(69) : error 010invalid function or declaration
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(70) : error 010invalid function or declaration
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(71) : error 010invalid function or declaration
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(72) : error 010invalid function or declaration
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(73) : error 010invalid function or declaration
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(283) : warning 203symbol is never used"PlayerInfo" 
PHP код:
enum pInfo
{
    
pPassword,
    
pCash,
    
pAdmin,
    
pKills,
    
pDeaths,
}
new 
PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playeridname[], value[]);
public 
LoadUser_data(playeridname[], 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;

Reply
#2

PHP код:
enum pInfo 

    
pPassword
    
pCash
    
pAdmin
    
pKills
    
pDeaths 

new 
PlayerInfo[MAX_PLAYERS][pInfo]; 
forward LoadUser_data(playeridname[], value[]); 
public 
LoadUser_data(playeridname[], 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

Reply
#3

Oh wow! Fixed, thank you so much Cody. +rep for you ^_^
Reply
#4

He didn't do shit lol, the code is the same.
Reply
#5

Quote:
Originally Posted by KevinExec
Посмотреть сообщение
He didn't do shit lol, the code is the same.
no man he removes the comma
Reply
#6

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.
Reply
#7

He even removed the ; from public.
Reply
#8

This topic is done lol stop replying xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)