PDA

View Full Version : Script problem


TakimonoZieh
17/04/2014, 03:56 AM
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1) : error 010: invalid function or declaration
wcrp\admin.pwn(3749) : warning 213: tag mismatch
wcrp\admin.pwn(3752) : warning 213: tag mismatch
wcrp\admin.pwn(3763) : warning 213: tag mismatch
wcrp\admin.pwn(3764) : warning 213: tag mismatch
wcrp\admin.pwn(3765) : warning 213: tag mismatch
wcrp\admin.pwn(3767) : warning 213: tag mismatch
wcrp\admin.pwn(5530) : warning 203: symbol is never used: "playerid"
wcrp\vehicles.pwn(3953) : warning 204: symbol is assigned a value that is never used: "driver"
wcrp\business.pwn(2019) : warning 217: loose indentation
wcrp\business.pwn(2020) : warning 217: loose indentation
wcrp\business.pwn(2021) : warning 217: loose indentation
wcrp\business.pwn(2022) : warning 217: loose indentation
wcrp\business.pwn(2023) : warning 217: loose indentation
wcrp\business.pwn(2114) : warning 217: loose indentation
wcrp\interiors.pwn(278) : warning 209: function "interiorTryEnterExit" should return a value
wcrp\factions\leo.pwn(493) : warning 204: symbol is assigned a value that is never used: "rank"
wcrp\factions\leo.pwn(492) : warning 204: symbol is assigned a value that is never used: "faction"
wcrp\forumsync.pwn(31) : warning 203: symbol is never used: "email"
wcrp\forumsync.pwn(31) : warning 203: symbol is never used: "pass"
wcrp\forumsync.pwn(31) : warning 203: symbol is never used: "username"
wcrp\forumsync.pwn(31) : warning 203: symbol is never used: "playerid"
wcrp\forumsync.pwn(38) : warning 203: symbol is never used: "pass"
wcrp\forumsync.pwn(38) : warning 203: symbol is never used: "playerid"
wcrp\forumsync.pwn(92) : warning 203: symbol is never used: "newusername"
wcrp\forumsync.pwn(92) : warning 203: symbol is never used: "oldusername"
wcrp\forumsync.pwn(92) : warning 203: symbol is never used: "playerid"
wcrp\cartoys.pwn(96) : warning 217: loose indentation
wcrp\cartoys.pwn(100) : warning 203: symbol is never used: "inputtext"
wcrp\cartoys.pwn(409) : warning 203: symbol is never used: "CRY"
wcrp\cartoys.pwn(409) : warning 203: symbol is never used: "CRX"
wcrp\cheats.pwn(18) : warning 203: symbol is never used: "reason"
wcrp\cheats.pwn(61) : warning 203: symbol is never used: "inputtext"
wcrp\cheats.pwn(76) : warning 203: symbol is never used: "oldkeys"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1113) : warning 219: local variable "query" shadows a variable at a preceding level
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "EventOnPlayerDeath"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "IsEventAdmin"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "IsFlyCar"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "LookupPlayerIP"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "NumPlayerRentCars"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "RPTestLabels"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "SendMsgToRadioSnoopers"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "ShowAllNameTagsForPlayer"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(1239) : warning 203: symbol is never used: "SyncWarns"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212) : warning 204: symbol is assigned a value that is never used: "VoteStarter"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "canUseDrugCommand"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "diseaseCheck"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "doBankSettlement"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "doDiseaseEffect"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "endRace"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "fpscamkeysOnPlayerKeyState"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "getBasketTeam"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "getCraftCooldownTime"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "getDrugCooldownTime"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "getPlayerNumAjails"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "getVehicleReclaimPrice"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "hasOOCTag"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "infectNearbyPlayers"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "isBankInNegative"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "isRaceActive"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "isSwitchingChars"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "playerGetsDisease"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(212 -- 1239) : warning 203: symbol is never used: "sendTourettesMessage"
C:\Users\maxene\Desktop\WC-RP 3.5.rar\gamemodes\WCRP.pwn(720) : warning 204: symbol is assigned a value that is never used: "servermaintenance"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


How to fix it?

ChuckyBabe
17/04/2014, 04:52 AM
Show the line 1 of your script

PAF
17/04/2014, 04:59 AM
warnings are not dangerous for a script you can remove error

show line/lines of error!

Sithis
17/04/2014, 06:09 AM
And we should guess your code how?

Dignity
17/04/2014, 06:11 AM
warnings are not dangerous for a script you can remove error

show line/lines of error!

That's not true at all.

Following warnings from O.P. will cause issues:


wcrp\admin.pwn(3749) : warning 213: tag mismatch
wcrp\admin.pwn(3752) : warning 213: tag mismatch
wcrp\admin.pwn(3763) : warning 213: tag mismatch
wcrp\admin.pwn(3764) : warning 213: tag mismatch
wcrp\admin.pwn(3765) : warning 213: tag mismatch
wcrp\admin.pwn(3767) : warning 213: tag mismatch
wcrp\interiors.pwn(27 : warning 209: function "interiorTryEnterExit" should return a value

Equuuuin0X
17/04/2014, 10:24 AM
For the ''symbol is never used'' warnings, remove the text of the warning there.

example

remove ''EventOnPlayerDeath'' as it is not being used.

S4t3K
17/04/2014, 10:42 AM
For the warning : symbol is not used, there is a pre-processor instruction which hides it from compiling log (just like the lose indentation).

The symbol is #pragma unused VarName

For example, #pragma unused EventOnPlayerDeath will hide the "warning : symbol is never used ("EventOnPlayerDeath")" from the compiling log.

But don't create vars you'll not use : it's wasting RAM.
As someone said : show us the line 1 of your code, we can't guess it.