Help ? -
SpaMaster - 27.07.2012
Код:
IC_war_by_me.pwn(174) : warning 235: public function lacks forward declaration (symbol "SetPlayerSpawn")
IC_war_by_me.pwn(183) : warning 209: function "SetPlayerSpawn" should return a value
IC_war_by_me.pwn(201) : error 025: function heading differs from prototype
IC_war_by_me.pwn(203) : error 029: invalid expression, assumed zero
IC_war_by_me.pwn(203) : error 017: undefined symbol "cmd_radio"
IC_war_by_me.pwn(203) : error 029: invalid expression, assumed zero
IC_war_by_me.pwn(203) : fatal error 107: too many error messages on one line
Код:
174 - public SetPlayerSpawn(playerid)
183 - }
201 - public OnPlayerCommandText(playerid, params[])
203 - CMD:radio(playerid, params[])
I need to fix this realy quick, so, ho can help me ?
Sorry for bad English!
Re: Help ? -
TheDeath - 27.07.2012
Show us some more code because mine crystal ball is on repair
183 ADD return 0; before }
201 - REPLACE WITH public OnPlayerCommandText(playerid, cmdtext[])
Add at the top of the script new cmd_radio;
Re: Help ? -
Devilxz97 - 27.07.2012
Код:
174 - public SetPlayerSpawn(playerid)
did you forward this callbacks ?
Re: Help ? -
SpaMaster - 27.07.2012
Code where is 183 line:
Код:
public SetPlayerSpawn(playerid)
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//USA spawn
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2729.5417,-2452.9534,17.5937);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
return 0;
}
Command /radio:
Код:
COMMAND:radio(playerid,params[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "*USA Vojnik %s: %s", sendername, result);
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "*USA Vojnik %s: %s", sendername, result);
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "*USA Zapovjednik %s: %s", sendername, result);
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "*USA Zapovjednik %s: %s", sendername, result);
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "*USA Zapovjednik %s: %s", sendername, result);
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "*USA General %s: %s", sendername, result);
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(5, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
return 0;
}
BTW, thanks for error on 201 line.
Re: Help ? -
SpaMaster - 27.07.2012
Devil, yes.
Re: Help ? -
SpaMaster - 27.07.2012
BUMP ?
Please, It's realy important to me.