need help!so many warning!
#1

hi!i am a chinese,from KPSK(club.kupai.me)
our server is the top of chinese samp!(114.112.176.215:7778)
and i have some questions !
we need help! i hope u can come and join us!
i hope u can get in touch with me !my e-mail:tony@kp8.cc
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(3753) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(4059) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(452 : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5092) : warning 213: tag mismatch
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5092) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5094) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5094) : warning 213: tag mismatch
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5094) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5095) : warning 213: tag mismatch
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(511 : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5119) : warning 213: tag mismatch
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5122) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5125) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5137) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5411) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5422) : warning 213: tag mismatch
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(5424) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(6370) : warning 204: symbol is assigned a value that is never used: "sxin"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(6343) : warning 204: symbol is assigned a value that is never used: "xin"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(6671) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(10555) : warning 203: symbol is never used: "ammo"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(10555) : warning 203: symbol is never used: "weaponid"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(10554) : warning 204: symbol is assigned a value that is never used: "plname"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(10554) : warning 204: symbol is assigned a value that is never used: "string"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(10676) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(11135) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(11644) : warning 216: nested comment
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(11740) : warning 204: symbol is assigned a value that is never used: "VID"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(12166) : warning 204: symbol is assigned a value that is never used: "age"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(13180) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(13201) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(13292) : warning 235: public function lacks forward declaration (symbol "LoadApartment")
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(13483) : warning 204: symbol is assigned a value that is never used: "szhuishaid"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(13482) : warning 204: symbol is assigned a value that is never used: "sxin"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(13457) : warning 204: symbol is assigned a value that is never used: "zhuishaid"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(13456) : warning 204: symbol is assigned a value that is never used: "xin"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(1436 : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(14875) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(14983) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(14984) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(14984) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15024) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15025) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15025) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15043) : warning 202: number of arguments does not match definition
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15046) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(1565 : warning 204: symbol is assigned a value that is never used: "weather"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15710) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15713) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15734) : warning 204: symbol is assigned a value that is never used: "apptkey"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(15734 -- 15877) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(17079) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(17091) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(18106) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(18150) : warning 216: nested comment
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(18246) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(24497) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(24526) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(2453 : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(24556) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(2456 : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(24571) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(24585) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(34396) : warning 219: local variable "playername" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(3440 : warning 219: local variable "b" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(34427) : warning 219: local variable "b" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(36322) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(39756) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(39856) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(43155) : warning 216: nested comment
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(43534) : warning 219: local variable "Car" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(43790) : warning 213: tag mismatch
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(43903) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(44271) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(44540) : warning 204: symbol is assigned a value that is never used: "HealthOver"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(44682) : warning 219: local variable "Car" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47479) : warning 203: symbol is never used: "in"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47462) : warning 204: symbol is assigned a value that is never used: "days"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47461) : warning 203: symbol is never used: "i"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(4745 : warning 204: symbol is assigned a value that is never used: "string"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47502) : warning 204: symbol is assigned a value that is never used: "days"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47501) : warning 203: symbol is never used: "Day_Index"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47500) : warning 203: symbol is never used: "i"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47654) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(4756 : warning 204: symbol is assigned a value that is never used: "string"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47568 -- 47687) : warning 216: nested comment
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47568 -- 47711) : warning 216: nested comment
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47568 -- 47724) : warning 216: nested comment
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(47568 -- 47774) : warning 216: nested comment
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(49899) : warning 219: local variable "ip" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(51872) : warning 216: nested comment
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52181) : warning 219: local variable "keys" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52224) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52237) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52260) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52291) : warning 213: tag mismatch
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52296) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52565) : warning 219: local variable "string" shadows a variable at a preceding level
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52565) : warning 204: symbol is assigned a value that is never used: "string"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52581) : warning 204: symbol is assigned a value that is never used: "distance"
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52672) : warning 217: loose indentation
D:\单机游戏\GTA San Andreas\pawno\GF3.pwn(52767) : warning 217: loose indentation
.



why? so many warning!
and the housepickup do not show in the game? how can do it!
Reply
#2

well to tell you i would have to see the lines of the errors
Reply
#3

no error ! but so many warning! i do not know the mean of the warning!
and how to solve the warning?
Reply
#4

Show us the Lines
Reply
#5

line:3753


public DKT1(playerid)
{
/*DKT[playerid] = 1;
ClearChatbox(playerid, 6);
SendClientMessage(playerid, COLOR_YELLOW, " 你同意遵守以上规则吗?请直接回答!");
SendClientMessage(playerid, COLOR_YELLOW, " 1: 不同意");
SendClientMessage(playerid, COLOR_YELLOW, " 2: 同意");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");*/
SetPlayerPos(playerid, 1146.3459,-1861.9390,13.7729);
SetPlayerInterior(playerid, 0);
//DKT[playerid] = 0;
SendClientMessage(playerid, COLOR_YELLOW, " 好吧!记得这些安全提示哦!你已经可以拥有驾照了");
//SendClientMessage(playerid, COLOR_YELLOW, " 准备进行实际操作考试...");
//SetTimerEx("DrivingTest1", 7000, 0, "d", playerid);
GameTextForPlayer(playerid, "~g~ Passed", 5000, 3);
PlayerPlayMusic(playerid);
pTest[playerid] = 0;
PlayerInfo[playerid][pCarLic] = 1;
GiveMoney(playerid, -100);
TakingLesson[playerid] = 0;
}
Reply
#6

If you indent your code properly (I don't know if it is because of the forum, if so then I apologize) then your code will not show the indentation warnings. However, if you got all these errors by just adding a simple thing, then I suggest matching opening/closing brackets ( { } )
Reply
#7

i can not solve this problem! if u can ! i will send our gamemode to u!
Reply
#8

warning 217: loose indentation i can solve the problem
but the other problem i can not do it ! help me please!
Reply
#9

warning 216: nested comment


Quote:

public CheckGas()
{
new string[256];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(i);
if(PlayerInfo[i][pNew2G] > 0)
{
if(PlayerInfo[i][pNew2G] <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
if(gG2as[i] == 1) {
format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Fuel:~w~ %d%",PlayerInfo[i][pNew2G]);
GameTextForPlayer(i,string,15500,3);
}
//if(IsAPlane(vehicle) || IsABoat(vehicle)) { Gas[vehicle]++; }
if((vehicle>=34&&vehicle<=40)||IsABus(vehicle)||Is ACopCar(vehicle)||IsABus(vehicle)||IsAnAmbulance(v ehicle)){PlayerInfo[i][pNew2G]-=1;return 1;}
else
{
PlayerInfo[i][pNew2G]-=2;
return 1;
}
}
}
}
}
return 1;
}

Reply
#10

Quote:
Originally Posted by yqyq007
warning 216: nested comment


Quote:

public CheckGas()
{
new string[256];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(i);
if(PlayerInfo[i][pNew2G] > 0)
{
if(PlayerInfo[i][pNew2G] <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
if(gG2as[i] == 1) {
format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Fuel:~w~ %d%",PlayerInfo[i][pNew2G]);
GameTextForPlayer(i,string,15500,3);
}
//if(IsAPlane(vehicle) || IsABoat(vehicle)) { Gas[vehicle]++; }
if((vehicle>=34&&vehicle<=40)||IsABus(vehicle)||Is ACopCar(vehicle)||IsABus(vehicle)||IsAnAmbulance(v ehicle)){PlayerInfo[i][pNew2G]-=1;return 1;}
else
{
PlayerInfo[i][pNew2G]-=2;
return 1;
}
}
}
}
}
return 1;
}

Pawn doesnt support nested comments.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)