C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(875) : error 035: argument type mismatch (argument 2)
C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(887) : warning 225: unreachable code
C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(892) : error 029: invalid expression, assumed zero
C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(892) : warning 215: expression has no effect
C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(892) : error 001: expected token: ";", but found "]"
C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(892) : error 029: invalid expression, assumed zero
C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(892) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
CMD:call(playerid, params[])
{
new string[128], phonenumb;
if(sscanf(params, "d", phonenumb)) return SendClientMessage(playerid, COL_WHITE, "USAGE: /call [phonenumber]");
if (PlayerInfo[playerid][pJailTime] > 0)
{
SendClientMessage(playerid,COLOR_GREY,"You can't use your phone while in jail.");
return 1;
}
{
SendClientMessage(playerid,COLOR_GREY,"You can't use your phone whilist restrained.");
return 1;
}
if(PlayerInfo[playerid][pPnumber] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You don't have a cell phone.");
return 1;
}
if(PhoneOnline[playerid] > 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "Your phone is off.");
return 1;
}
format(string, sizeof(string), "* %s takes out a cellphone.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
if(phonenumb == 911)
{
if(PlayerInfo[playerid][pJailed] == 4 || PlayerInfo[playerid][pJailed] == 1000)
{
SendClientMessageEx(playerid, COLOR_WHITE, "Cannot use this whilist in admin prison!");
return 1;
}
SendClientMessageEx(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
SendClientMessageEx(playerid, COLOR_ALLDEPT, "EMERGENCY: Which service do you require, police or paramedic?");
Mobile[playerid] = 911;
PlayAudioStreamForPlayer(playerid, "http://pla.project-la.com/sounds/RingingPhone.mp3");
return 1;
}
if(phonenumb == 411)
{
if(PlayerInfo[playerid][pJailed] == 4 || PlayerInfo[playerid][pJailed] == 1000)
{
SendClientMessageEx(playerid, COLOR_WHITE, "Cannot use this whilist in admin prison!");
return 1;
}
SendClientMessageEx(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
SendClientMessageEx(playerid, COLOR_ALLDEPT, "FOX 11: We have are currently experiencing a influx of caller's, your information was given to the company.");
SendClientMessageEx(playerid, COLOR_ALLDEPT, "FOX 11: Please state your name, to complete the call.");
Mobile[playerid] = 411;
PlayAudioStreamForPlayer(playerid, "http://pla.project-la.com/sounds/RingingPhone.mp3");
return 1;
}
if(phonenumb == 333)
{
if(PlayerInfo[playerid][pJailed] == 4 || PlayerInfo[playerid][pJailed] == 1000)
{
SendClientMessageEx(playerid, COLOR_WHITE, "Cannot use this whilist in admin prison!");
return 1;
}
SendClientMessageEx(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
SendClientMessageEx(playerid, COLOR_ALLDEPT, "Government: We have are currently experiencing an influx of caller's, your information was given to the company.");
SendClientMessageEx(playerid, COLOR_ALLDEPT, "Government: Please state your name, to complete the call.");
Mobile[playerid] = 333;
PlayAudioStreamForPlayer(playerid, "http://pla.project-la.com/sounds/RingingPhone.mp3");
return 1;
}
if(phonenumb == PlayerInfo[playerid][pPnumber])
{
ShowPlayerDialog(playerid, CELLMAIL, DIALOG_STYLE_LIST, "{33AA33}Voicemail", "Check Messages\n Delete Messages" , "Select", "Cancel");
return 1;
}
if(Mobile[playerid] != INVALID_PLAYER_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD2, " You are already on a call...");
return 1;
}
foreach(Player, i)
{
if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
{
new giveplayerid = i;
Mobile[playerid] = giveplayerid; //caller connecting
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PhoneOnline[giveplayerid] > 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "That player's phone is switched off.");
Mobile[playerid] = INVALID_PLAYER_ID;
return 1;
}
if(Mobile[giveplayerid] != INVALID_PLAYER_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You just get a busy tone...");
Mobile[playerid] = INVALID_PLAYER_ID;
return 1;
}
if(Spectating[giveplayerid]!=0)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You just get a busy tone...");
Mobile[playerid] = INVALID_PLAYER_ID;
return 1;
}
if(CallConnected[giveplayerid]!=0)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You just get a busy tone...");
Mobile[playerid] = INVALID_PLAYER_ID;
return 1;
}
if (Mobile[giveplayerid] == INVALID_PLAYER_ID)
{
format(string, sizeof(string), "Your mobile is ringing - type /p to answer it. [Caller ID: %d]", PlayerInfo[playerid][pPnumber]);
SendClientMessageEx(giveplayerid, COLOR_YELLOW, string);
RingTone[giveplayerid] = 10;
format(string, sizeof(string), "* %s's phone begins to ring.", GetPlayerNameEx(i));
PlayAudioStreamForPlayer(giveplayerid, "http://pla.project-la.com/sounds/MobileRingTone.mp3");
SendClientMessageEx(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayAudioStreamForPlayer(playerid, "http://pla.project-la.com/sounds/RingingPhone.mp3");
CellTime[playerid] = 1;
CallConnected[giveplayerid] = 1;
VmailID[playerid] = giveplayerid;
VmailTmer[playerid] = SetTimerEx("VmailTimer", 30000, 0, "i", playerid);
return SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
}
}
}
}
}
SendClientMessageEx(playerid, COLOR_GRAD2, "Your call can not be completed as dialed, please check the number and try again.");
return 1;
}
You open a bracket without an if statement before. If there are errors from other lines too, post those. I cannot guess in 136 lines.
Yeah how about not using our source code and using audio files on my server. Thanks.