22.06.2012, 10:57
Hy all, please help me for fix this warning :
This code in line 6496 "string"
This code in line 17847 "vehicleid"
This code in line 27326 "idcar"
Please help me +REP for you
Quote:
D:\States Roleplay [2012]\gamemodes\larp.pwn(6496) : warning 204: symbol is assigned a value that is never used: "string" D:\States Roleplay [2012]\gamemodes\larp.pwn(17847) : warning 204: symbol is assigned a value that is never used: "vehicleid" D:\States Roleplay [2012]\gamemodes\larp.pwn(27326) : warning 219: local variable "idcar" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings. |
Quote:
public SetPlayerSpawn(playerid) { new string[128], rand; if(IsPlayerConnected(playerid)) { if(!IsPlayerNPC(playerid)) { if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0) { if(PlayerInfo[playerid][pAdminDuty] == 1) return 1; if(FirstSpawn[playerid] != 1) { SetRealMoney(playerid, ScriptMoney[playerid]); PlayerInfo[playerid][pDeaths] += 1; SetPlayerHealth(playerid, 50.0); SafeSetPlayerInterior(playerid, 3); rand = random(sizeof(gMedicSpawns)); SafeSetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, 0); TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You need to rest now ...", 5000, 3); ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); if(PlayerInfo[playerid][pRegularRank] == 1) |
Quote:
new vehicleid = GetPlayerVehicleID(i); if(SafeTime[i] > 0) { SafeTime[i]--; } if(GetPlayerState(i) == 2) { new kmh = GetPlayerSpeed(i, true); if ((BusrouteEast[i][0] >= 0 && BusrouteWest[i][0] >= 0)) { if(PlayerInfo[i][pSpeedo] == 2) { if(kmh >= 0 && kmh <= 80) |
Quote:
new idcar = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return 1; if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509) return 1; if(IsAHarvest(idcar)) return 1; if(IsADrugHarvest(idcar)) return 1; if(IsASweeper(idcar)) return 1; if(IsASalesVehicle(idcar)) return 1; |