Quote:
Originally Posted by Snipa
Here's an example:
pawn Код:
INI_ParseFile(file, "LoginAcc", false, true, playerid, true, false);
pawn Код:
forward LoginAcc(playerid, name[ ], value[ ]); public LoginAcc(playerid, name[ ], value[ ]) { if(strcmp(name,"Password")) SetPVarString(playerid,"pPass",value); if(!strcmp(name, "Level", false) ) { PInfo[playerid][Level1] = strval(value); } if(!strcmp(name, "VIP", false) ) { PInfo[playerid][VIP] = strval(value); } if(!strcmp(name, "Deaths", false) ) { PInfo[playerid][Deaths1] = strval(value); } if(!strcmp(name, "Cash", false) ) { PInfo[playerid][Cash] = strval(value); } if(!strcmp(name, "Score", false) ) { PInfo[playerid][Score] = strval(value); } if(!strcmp(name, "Kills", false) ) { PInfo[playerid][Kills1] = strval(value); } if(!strcmp(name, "Deaths", false) ) { PInfo[playerid][Deaths1] = strval(value); } return 1; }
|
pawn Код:
if(strcmp(name,"Password")) SetPVarString(playerid,"pPass",value);
What's this?