24.07.2011, 18:46
I got this error:
Here is the stuff I did. I first made a CMD:
Then on the login part.
I just can't figure out what i've done wrong..
sincerely
Facepunch
pawn Код:
C:\Users\reha5\Desktop\samp server\gamemodes\quebradosrp2.pwn(524) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
pawn Код:
CMD:buyspawn(playerid,params[]) {
new Float:x, Float:y, Float:z;
if (gLogged[playerid])
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
dUserSetINT(PlayerName(playerid)).("pos", GetPlayerPos(playerid, Float:x, Float:y, Float:z));
GivePlayerMoney(playerid, -1000);
return 1;
}
pawn Код:
CMD:login(playerid,params[]) {
if (gLogged[playerid]) return SystemMsg(playerid,"You have already logined.");
if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"You do not have an account, please /register [password]");
if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /login [password]");
if (udb_CheckLogin(PlayerName(playerid),params)) {
new Float:x, Float:y, Float:z;
SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("score"));
SetPlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money"));
SetPlayerTeam(playerid,dUserINT(PlayerName(playerid)).("faction"));
SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("Skin"));
pInfo[playerid][pRank] = dUserINT(PlayerName(playerid)).("rank");
SetPlayerPos(playerid, Float:x, Float:y, Float:z, dUserINT(PlayerName(playerid)).("pos"));
SpawnPlayer(playerid);
gLogged[playerid]=true;
return SystemMsg(playerid,"You have successfully logined.");
}
return SystemMsg(playerid,"Wrong password or nickname!");
}
I just can't figure out what i've done wrong..
sincerely
Facepunch