Код:
C:\Documents and Settings\user\Desktop\Servers\gamemodes\PRP.pwn(28338) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\user\Desktop\Servers\gamemodes\PRP.pwn(28385) : error 017: undefined symbol "string"
C:\Documents and Settings\user\Desktop\Servers\gamemodes\PRP.pwn(28385) : error 017: undefined symbol "string"
C:\Documents and Settings\user\Desktop\Servers\gamemodes\PRP.pwn(28385) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\Desktop\Servers\gamemodes\PRP.pwn(28385) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
new string[128]; ((LINE28338))
if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "You can't do this while you're in a vehicle.");
return 1;
}
if(GetPVarInt(playerid, "PBM") > 0)
{
SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
return 1;
}
if(GetPVarInt(playerid, "EventToken") != 0)
{
SendClientMessage(playerid, COLOR_GREY, "You can't use the tazer while you're in an event.");
return 1;
}
if(PlayerCuffedTime[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
return 1;
}
if(GetPVarInt(playerid, "Injured") == 1)
{
SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
return 1;
}
if(PlayerInfo[playerid][pJailed] > 0) {
SendClientMessage(playerid, COLOR_WHITE, "You can't use this in jail/prison.");
return 1;
}
if(PlayerCuffed[playerid] >= 1) {
SendClientMessage(playerid, COLOR_WHITE, "You can't use this while tazed/cuffed.");
return 1;
}
if(pBeanBag[playerid])
SendClientMessage(playerid, COLOR_GREY, "You must first holster your bean bag shotgun.");
return 1;
}
if(pTazer[playerid] == 0)
{
pTazerReplace[playerid] = PlayerInfo[playerid][pGuns][2];
if(PlayerInfo[playerid][pGuns][2] != 0) RemovePlayerWeapon(playerid, PlayerInfo[playerid][pGuns][2]);
28385 format(string, sizeof(string), "* %s unholsters their tazer.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);