Posts: 553
Threads: 95
Joined: Sep 2013
ok i did login register the one by Kush
Anyways it has kill deaths adminlevel and cash
But how could i add Score And it will save weapons?
Posts: 553
Threads: 95
Joined: Sep 2013
Posts: 553
Threads: 95
Joined: Sep 2013
But wich one? enums, register dialog, i can't know what code
Posts: 130
Threads: 38
Joined: Jan 2013
Reputation:
0
His tutorial is very buggy. You can check the comments on the thread if you want.
Posts: 553
Threads: 95
Joined: Sep 2013
na i fixed the bugs, I just need to know how to add that it saves score,weapons or something
Posts: 553
Threads: 95
Joined: Sep 2013
mhmm
i already have this things
PHP код:
INI_WriteInt(file, "pScore", variablename[playerid][pScore]);
here
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("AdminLevel",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
return 1;
}
Posts: 553
Threads: 95
Joined: Sep 2013
Ah and
PHP код:
variablename[playerid][pScore]++;
PHP код:
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(305) : error 017: undefined symbol "variablename"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(305) : warning 215: expression has no effect
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(305) : error 001: expected token: ";", but found "]"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(305) : error 029: invalid expression, assumed zero
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(305) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.