Easy to Fix This Errors { But HOW ? } - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Easy to Fix This Errors { But HOW ? } (
/showthread.php?tid=622520)
Easy to Fix This Errors { But HOW ? } -
RedRex - 23.11.2016
Hello i got this errors and i need help
Код:
error 021: symbol already defined: "GetPlayerName"
//Player Join message
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"%s(%d) Has joined %s v%s!",pname,playerid,svname,sversion);
SendClientMessageToAll(COLOR_DEADCONNECT,string);
format(string,sizeof(string),"6%s(%d) Has joined %s v%s!",pname,playerid,svname,sversion);
IRC_Say(gGroupID,IRC_CHANNEL,string);
SetPlayerColor(playerid,COLOR_DEADCONNECT);
And this Erros
Код:
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
JailTimer[playerid] = TextDrawCreate(505.000000, 411.000000, "Jailtime: 30");
MessageTD[playerid] = TextDrawCreate(241.000000, 410.000000, "TICKET RECIEVED");
LocationTD[playerid] = TextDrawCreate(43.000000, 327.000000, "Downtown");
error 021: symbol already defined: "format"
format(string,sizeof(string),"Version: %s",sversion);
error 021: symbol already defined: "SetPlayerMapIcon"
SetPlayerMapIcon(playerid,2,-2099.6882,899.1699,76.7109,24,0); //CaltonHeightsDH
error 017: undefined symbol "PlayerName"
if(PLAYERLIST_authed[playerid] == 1)
{
dUserSetINT(PlayerName(playerid)).("Bankcash",BankCash[playerid]);
dUserSetINT(PlayerName(playerid)).("Cash",GetPlayerMoney(playerid));
dUserSetINT(PlayerName(playerid)).("Score",GetPlayerScore(playerid));
dUserSetINT(PlayerName(playerid)).("Adminlevel",AdminLevel[playerid]);
dUserSetINT(PlayerName(playerid)).("Army",CanUseArmy[playerid]);
dUserSetINT(PlayerName(playerid)).("SWAT",CanUseSWAT[playerid]);
dUserSetINT(PlayerName(playerid)).("RegularPlayer",IsRegularPlayer[playerid]);
dUserSetINT(PlayerName(playerid)).("DrugHouseOwner",DrugHouseOwner[playerid]);
dUserSetINT(PlayerName(playerid)).("OttoOwner",OttoOwner[playerid]);
dUserSetINT(PlayerName(playerid)).("TSkill",TerroristSkill[playerid]);
dUserSetINT(PlayerName(playerid)).("RobSkill",RobSkill[playerid]);
dUserSetINT(PlayerName(playerid)).("HasPackC4",HasPackC4[playerid]);
dUserSetINT(PlayerName(playerid)).("HasPackRope",HasPackRope[playerid]);
dUserSetINT(PlayerName(playerid)).("HasPackMoney",HasPackMoney[playerid]);
dUserSetINT(PlayerName(playerid)).("SavedWantedLevel",SavedWantedLevel[playerid]);
dUserSetINT(PlayerName(playerid)).("SavedJailTime",SavedJailTime[playerid]);
}
Re: Easy to Fix This Errors { But HOW ? } -
Kaliber - 23.11.2016
dude..learn the basics..
dont use any function..out of a section...
PHP код:
{
//Here code ok
}
//Here not!