please help me its not heard for your... -
Hazko - 03.11.2013
ARP.pwn(55200) : warning 217: loose indentation
ARP.pwn(55215) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
and this
ARP.pwn(39294) : error 017: undefined symbol "string"
ARP.pwn(39294) : error 017: undefined symbol "string"
ARP.pwn(39294) : error 029: invalid expression, assumed zero
ARP.pwn(39294) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
55200 if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1|| PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "[LSPD %s:o< This is the Police Pullover now!", GetPlayerNameEx(playerid));
ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
else if(PlayerInfo[playerid][pMember] == 7||PlayerInfo[playerid][pLeader] == 7)
55215 {
Код:
format(string, sizeof(string), "* %s pushes the door and enters the shop.", RPN(playerid));
ProxDetector(15.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Re: please help me its not heard for your... -
DefaultEx - 03.11.2013
We need to see the code in order to help you...
Re: please help me its not heard for your... -
DobbysGamertag - 04.11.2013
Quote:
Originally Posted by DefaultEx
We need to see the code in order to help you...
|
Not for this.
pawn Код:
//above the warning.
new string[124]; //if needed increase the cell size.
As for indentation:
pawn Код:
SomeFunc()
{
Beautifully Indented Code
{
Uses Four Spaces
{
Or Use Tab
{
Thus,
{
No Warnings
}
}
}
}
return indented :D
}
Dont use that xD i made it as an example.
Re: please help me its not heard for your... -
RayDcosta - 04.11.2013
for the undefined string thing just define it as stated above.
for the loose indentation issue, you have two options:
1) if ur script is small and u can make the changes like suggested above, do it, itll make it easier for you to script.
2) incase you made a whole large script and cant do anything like that anymore, just put
#pragma tabsize 0
at the very top of your script after the includes. and this will fix ur issue. cheers