17.05.2014, 00:33
(
Последний раз редактировалось cedizon; 17.05.2014 в 01:07.
)
I don't know the Problem Here or whre the Error is but this is what i added before that Error came
And After i Compile and Run This Error Came
invalid array size (negative, zero or out of bounds)
This is the Same Script with it that i didn't encounter any errors
I Really Need Help! I'm new here i really really wanna know anything/everything about Scripting
pawn Код:
else if(IsARRWrecker(vehicleid))
{
if(PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pRank] >= 4)
{
SendClientMessageEx(playerid, COLOR_GREEN, "__________________RAPID RECOVERY WRECKER____________________");
SendClientMessageEx(playerid, COLOR_GRAD2, "<< Avaiable wrecker commands: >>");
SendClientMessageEx(playerid, COLOR_GRAD2, "<< /wreck /unwreck /impound >>");
SendClientMessageEx(playerid, COLOR_GREEN, "____________________________________________________________");
}
else
{
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
defer NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not atleast rank 4 and above in Rapid Recovery");
}
}
else if(IsARRTower(vehicleid))
{
if(PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pRank] >= 2)
{
SendClientMessageEx(playerid, COLOR_GREEN, "__________________RAPID RECOVERY TOW TRUCK____________________");
SendClientMessageEx(playerid, COLOR_GRAD1, "<< Avaiable tow commands: >>");
SendClientMessageEx(playerid, COLOR_GRAD1, "<< /tow /untow /impound >>");
SendClientMessageEx(playerid, COLOR_GREEN, "______________________________________________________________");
}
else
{
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
defer NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not atleast rank 2 and above in Rapid Recovery");
}
}
else if(IsARRBattery(vehicleid))
{
if(PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pRank] >= 1)
{
SendClientMessageEx(playerid, COLOR_GREEN, "__________________RAPID RECOVERY BATTERY______________________");
SendClientMessageEx(playerid, COLOR_GRAD1, "<< Avaiable mechanic commands: >>");
SendClientMessageEx(playerid, COLOR_GRAD1, "<< /fix /refill >>");
SendClientMessageEx(playerid, COLOR_GREEN, "______________________________________________________________");
}
else
{
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
defer NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not atleast rank 3 and above in Rapid Recovery");
}
}
And After i Compile and Run This Error Came
invalid array size (negative, zero or out of bounds)
This is the Same Script with it that i didn't encounter any errors
pawn Код:
else if(IsAnAmbulance(vehicleid)) {
if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3) {
if(LAFDVehicles[13] == vehicleid && PlayerInfo[playerid][pRank] < 5) {
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
NOPCheck(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Only ranks 5+ can drive this vehicle.");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY," You're not in the LAFD!");
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
NOPCheck(playerid);
}
}
I Really Need Help! I'm new here i really really wanna know anything/everything about Scripting