20.03.2010, 08:07
I don't understand what I'm doing wrong...
Errors;
Could someone help?
Errors;
Код:
D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(2390) : error 029: invalid expression, assumed zero D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(2393) : error 001: expected token: "-string end-", but found "-identifier-" D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(2393) : error 029: invalid expression, assumed zero D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(2393) : warning 215: expression has no effect D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(2393) : error 001: expected token: ";", but found ")" D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(2393) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
pawn Код:
dcmd_setname(playerid, params[])
{
if(pInfo[playerid][pAdmin] < 5) return SystemMessage(playerid, "You are not an Administrator with the required level.");
{
new id, newname[24];
if(sscanf(params, "ds", id, newname)) // Usage Message
else
{
new str[24];
format(str, 24, "%s". newname));
SetPlayerName(id, str);
format(myString,sizeof(myString),"You have changed %s's name to %s",myPlayerName, newname);
SystemMessage(playerid, myString);
format(myString,sizeof(myString),"Your name has been changed by Adminstrator %s to $s",adminname, newname);
}
}
return 1;
}