Compilation error.
#1

I need a help out of this, I tried to add admin tags for admins which would work on /admintag cmd above the admins head showing their rank and **-RP Administrator, I found this in the samp forum but after i compile it displays several of errors like this:
Код:
E:\X Generation Roleplay\gamemodes\UTRP.PWN(526) : warning 201: redefinition of constant/macro (symbol "COLOR_ORANGE")
E:\X Generation Roleplay\gamemodes\UTRP.PWN(537) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTRED")
E:\X Generation Roleplay\gamemodes\UTRP.PWN(539) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTGREEN")
E:\X Generation Roleplay\gamemodes\UTRP.PWN(549) : warning 201: redefinition of constant/macro (symbol "COLOR_PURPLE")
E:\X Generation Roleplay\gamemodes\UTRP.PWN(553) : warning 201: redefinition of constant/macro (symbol "COLOR_BLACK")
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(1321) : error 017: undefined symbol "PlayerInfo"
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(17183) : error 017: undefined symbol "playerid"
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(17183 -- 17186) : warning 215: expression has no effect
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(17186) : error 001: expected token: ";", but found "-identifier-"
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(17405) : warning 216: nested comment
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(19569) : warning 213: tag mismatch
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(39764) : warning 217: loose indentation
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(47582) : warning 217: loose indentation
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(59745) : error 017: undefined symbol "szPlayerName"
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(59749) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Perhaps you could show us the code and what lines the errors are on?
Reply
#3

The first warnings:

Код:
E:\X Generation Roleplay\gamemodes\UTRP.PWN(526) : warning 201: redefinition of constant/macro (symbol "COLOR_ORANGE")
E:\X Generation Roleplay\gamemodes\UTRP.PWN(537) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTRED")
E:\X Generation Roleplay\gamemodes\UTRP.PWN(539) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTGREEN")
E:\X Generation Roleplay\gamemodes\UTRP.PWN(549) : warning 201: redefinition of constant/macro (symbol "COLOR_PURPLE")
E:\X Generation Roleplay\gamemodes\UTRP.PWN(553) : warning 201: redefinition of constant/macro (symbol "COLOR_BLACK")
are cause of that you've changed the original colour codes to another ones, try defining them with another names like "#define blue 0x0000BBAA" "#define orange 0xFF9900AA" and so on..

These three

Код:
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(1321) : error 017: undefined symbol "PlayerInfo"
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(17183) : error 017: undefined symbol "playerid"
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(59745) : error 017: undefined symbol "szPlayerName"
means that you didnt put the script on the right place or either you didnt defined "playerid" & "PlayerInfo".

Код:
E:\UT Generation Roleplay\gamemodes\UTRP.PWN(17186) : error 001: expected token: ";", but found "-identifier-"
means that you didnt put ";" at the end after the bracket.

And about the "loose indentation" warning, put this on top of your script

Код:
#pragma tabsize 0
Hope I helped you.
Reply
#4

I added this admin tag from this link http://forum.sa-mp.com/showthread.ph...ghlight=Labels
And thank you for your help Dizzle.
Reply
#5

Seriously, I cant understand a thing from this tutorial, better find another one - well explained.
Reply
#6

I couldnt find one than that would be appreciated if you can link one.
Reply
#7

Hello is there anyone to help me on defining?
Reply
#8

The wiki is always there.

https://sampwiki.blast.hk/wiki/Scripting_Basics#Declaration
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)