[HELP] Somthing Weird with this Gamemode/Script when Compiling -
BritishSombrero - 10.10.2013
I have the UGRP Gamemode I change one thing such as the Gamemode text or text on screen stuff and it immediately gives me errors I need some help please.
Код:
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(19636) : warning 219: local variable "Ammo" shadows a variable at a preceding level
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(20725) : warning 213: tag mismatch
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31941) : warning 219: local variable "rx" shadows a variable at a preceding level
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31941) : warning 219: local variable "ry" shadows a variable at a preceding level
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31941) : warning 219: local variable "rz" shadows a variable at a preceding level
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(44745) : warning 203: symbol is never used: "CivPedsFemale"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(44745) : warning 203: symbol is never used: "CivPedsMale"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Warnings.
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
efrim123 - 10.10.2013
Those are warnings your gamemode has complied fine
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
Pottus - 10.10.2013
A warning is an error.
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
BritishSombrero - 10.10.2013
Can Somone help please?
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
efrim123 - 10.10.2013
Quote:
Originally Posted by [uL]Pottus
A warning is an error.
|
Actually its not but it can make some of the codes get a bug and the gamemode should work fine
On topic: Go to the lines that are the errors and post the codes here
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
Konstantinos - 10.10.2013
You declared CivPedsFemale and CivPedsMale but they're not used anywhere to your gamemode. Use them somewhere or remove them.
About the rest, they're declared as global variables and they're declared again but this time as local variables. Rename the variables from the lines it gave and don't forget to rename them on the rest of the code too (which are used).
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
BritishSombrero - 10.10.2013
19636 : new Ammo = GetPlayerAmmo(playerid);
20725: if(ServerRadio == false)
31941: public OnPlayerEditDynamicObject(playerid, objectid, response, Float

, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
44745: There is no 44745 line..
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
Konstantinos - 10.10.2013
pawn Код:
new ammo_ = GetPlayerAmmo(playerid);
// rename Ammo to ammo_ below (where it's been used)
Assuming ServerRadio is declared as an integer:
The callback is fine, rename the global variables rx, ry and rz and where they've been used OUT of OnPlayerEditDynamicObject callback.
The rest like I said, they are never used; however, you do not have to worry about that. Just use them or remove them.
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
BritishSombrero - 10.10.2013
I give up
Код:
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(149) : error 055: start of function body without function header
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(203) : error 010: invalid function or declaration
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(19636) : warning 219: local variable "Ammo" shadows a variable at a preceding level
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31941) : warning 219: local variable "rx" shadows a variable at a preceding level
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31941) : error 025: function heading differs from prototype
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31946) : error 017: undefined symbol "x"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31960) : error 017: undefined symbol "x"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31964) : error 017: undefined symbol "x"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31965) : error 017: undefined symbol "y"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31966) : error 017: undefined symbol "z"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31981) : error 017: undefined symbol "x"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31982) : error 017: undefined symbol "y"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31983) : error 017: undefined symbol "z"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(31997) : error 017: undefined symbol "x"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(32011) : error 017: undefined symbol "x"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(32015) : error 017: undefined symbol "x"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(32016) : error 017: undefined symbol "y"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(32017) : error 017: undefined symbol "z"
C:\Users\Nate\Desktop\UGRP\gamemodes\UGRP.pwn(44743) : warning 203: symbol is never used: "CivPedsFemale"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
16 Errors.
Re: [HELP] Somthing Weird with this Gamemode/Script when Compiling -
BritishSombrero - 10.10.2013
Has anyone got skype or Team viewer that could help me? it would be really appreciated Thanks.