SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 31/01/2010, 06:27 AM   #1
yqyq007
Little Clucker
 
Join Date: Aug 2008
Posts: 19
Reputation: 0
Default need help!so many warning!

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!
yqyq007 is offline  
Old 31/01/2010, 06:53 AM   #2
Flake.
High-roller
 
Flake.'s Avatar
 
Join Date: Sep 2009
Location: 1400
Posts: 1,166
Reputation: 132
Default Re: need help!so many warning!

well to tell you i would have to see the lines of the errors
Flake. is offline  
Old 31/01/2010, 12:41 PM   #3
yqyq007
Little Clucker
 
Join Date: Aug 2008
Posts: 19
Reputation: 0
Default Re: need help!so many warning!

no error ! but so many warning! i do not know the mean of the warning!
and how to solve the warning?
yqyq007 is offline  
Old 31/01/2010, 12:44 PM   #4
SamAlexSam
Big Clucker
 
Join Date: Jun 2009
Posts: 110
Reputation: 0
Default Re: need help!so many warning!

Show us the Lines
SamAlexSam is offline  
Old 31/01/2010, 12:50 PM   #5
yqyq007
Little Clucker
 
Join Date: Aug 2008
Posts: 19
Reputation: 0
Default Re: need help!so many warning!

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;
}
yqyq007 is offline  
Old 31/01/2010, 01:24 PM   #6
mamorunl
High-roller
 
mamorunl's Avatar
 
Join Date: Feb 2007
Location: Groningen/Netherlands
Posts: 1,938
Reputation: 2246
Default Re: need help!so many warning!

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 ( { } )
mamorunl is offline  
Old 31/01/2010, 01:49 PM   #7
yqyq007
Little Clucker
 
Join Date: Aug 2008
Posts: 19
Reputation: 0
Default Re: need help!so many warning!

i can not solve this problem! if u can ! i will send our gamemode to u!
yqyq007 is offline  
Old 01/02/2010, 02:54 AM   #8
yqyq007
Little Clucker
 
Join Date: Aug 2008
Posts: 19
Reputation: 0
Default Re: need help!so many warning!

warning 217: loose indentation i can solve the problem
but the other problem i can not do it ! help me please!
yqyq007 is offline  
Old 01/02/2010, 03:07 AM   #9
yqyq007
Little Clucker
 
Join Date: Aug 2008
Posts: 19
Reputation: 0
Default Re: need help!so many warning!

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;
}
yqyq007 is offline  
Old 01/02/2010, 03:11 AM   #10
Eazy_Efolife
High-roller
 
Join Date: Aug 2009
Posts: 1,141
Reputation: 15
Default Re: need help!so many warning!

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.
Eazy_Efolife is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning iLcke Help Archive 2 24/06/2010 12:17 PM
[DUV] Warning YSI [NWD]Tweener_ Português/Portuguese 15 22/05/2010 08:45 PM
0.3 register question! yqyq007 Help Archive 2 01/03/2010 06:30 AM
Warning! Alexinho Client Support 1 19/12/2009 10:43 PM
HELP!!! SO MANY ERROR~ SO MANY WARNING~~~~ addmion Help Archive 2 28/11/2009 01:50 PM


All times are GMT. The time now is 02:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.