DM error
#10

pawn Код:
ok this is the warning

            if(strcmp(cmdtext, "/nrg", true)==0)
            {
            if( PVeh[playerid] > 0 )
            {
            if(GetPlayerVehicleID(playerid) != PVeh[playerid])
            {
            if(IsPlayerInAnyVehicle(playerid))
            {
            RemovePlayerFromVehicle(playerid);
            }
            new Float: X, Float: Y, Float: Z, Float: Ang, Name[30];
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Ang);
            GetPlayerName(playerid, Name, sizeof( Name ));
            PutPlayerInVehicle(playerid, PVeh[playerid], 0);
            SetVehiclePos(PVeh[playerid], X, Y, Z);
            SetVehicleZAngle(PVeh[playerid], Ang);
            SetVehicleHealth(PVeh[playerid], 1000.0);
            LinkVehicleToInterior(PVeh[playerid], GetPlayerInterior(playerid));
            SendClientMessage(playerid,COLOR_GREEN, "personal nrg called.");
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            }
            else
            {
            SendClientMessage(playerid,COLOR_RED, "You are already on your personal nrg.");
            }
            }
            else
            {
            if(IsPlayerInAnyVehicle(playerid))
            {
            RemovePlayerFromVehicle(playerid);
            }
            new Float: X, Float: Y, Float: Z, Float: Ang, Name[30];
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Ang);
            GetPlayerName(playerid, Name, sizeof( Name ));
            PVeh[playerid] = CreateVehicle(522, X, Y , Z, Ang, 75,3, 5000000);
            PutPlayerInVehicle(playerid, PVeh[playerid], 0);
            LinkVehicleToInterior(PVeh[playerid], GetPlayerInterior(playerid));
            printf("personal nrg created for %s.", Name);
            SendClientMessage(playerid,COLOR_GREEN, "personal nrg created.");
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SetVehicleParamsForPlayer(PVeh[playerid], playerid, 0, 0);
            for(new i=0; i <= MAX_PLAYERS; i++)
            {
            if ( IsPlayerConnected(i) )
            {
            if ( i != playerid )
            {
            SetVehicleParamsForPlayer(PVeh[playerid], i, 0, 1);
            }
            }
            }
            }
            return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Are in a DM, type /kill or /ifarted to exit !");
return 1;
}
new string[128]; // <------ This is were the pawn complier detects the warning/////
format(string, sizeof(string), "I have scanned -- %s but its not a availabaile, please check your spelling and try again or /tele and /teles.", cmdtext);
return SendClientMessage(playerid, COLOR_GREY, string);
}
look at the end and you will see it
Reply


Messages In This Thread
DM error - by ReV. - 08.03.2009, 03:56
Re: DM error - by hazdog - 08.03.2009, 05:33
Re: DM error - by ReV. - 08.03.2009, 05:36
Re: DM error - by ReV. - 08.03.2009, 05:50
Re: DM error - by ReV. - 08.03.2009, 16:57
Re: DM error - by Think - 08.03.2009, 17:20
Re: DM error - by ReV. - 08.03.2009, 17:41
Re: DM error - by ReV. - 08.03.2009, 18:24
Re: DM error - by ICECOLDKILLAK8 - 08.03.2009, 18:42
Re: DM error - by ReV. - 08.03.2009, 19:12

Forum Jump:


Users browsing this thread: 4 Guest(s)