errors, but things seem fine - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: errors, but things seem fine (
/showthread.php?tid=388098)
errors, but things seem fine -
0utLaW_ - 27.10.2012
pawn Код:
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(878) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(880) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1112) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1205) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1592) : warning 219: local variable "playername" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1592) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1604) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1607) : warning 219: local variable "playername" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1607) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1620) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1623) : warning 219: local variable "playername" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1623) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1635) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1638) : warning 219: local variable "playername" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1638) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1650) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1652) : warning 219: local variable "playername" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1652) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1666) : warning 219: local variable "playername" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1666) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1679) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1682) : warning 219: local variable "playername" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1682) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(1694) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\SSSSSS~1\GAMEMO~1\GAP.pwn(807) : warning 204: symbol is assigned a value that is never used: "result"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
25 Warnings.
Lines 1112 - 1119
pawn Код:
if(strcmp(cmd, "/sellspas12", true) == 0) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GREY, "Usage: /sellspas12 [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
Lines 1205
pawn Код:
if (strcmp("/jobgunplace", cmdtext, true, 10) == 0) {
SendClientMessage(playerid, COLOR_BLUELIGHT, "* * Gun Job place was placed on your map, look on your map and follow it * *");
return 1;
}
I Can post more but they are all same
what could be the problem?
Re: errors, but things seem fine -
0utLaW_ - 27.10.2012
bu, need this kind of quick sorry.
Re: errors, but things seem fine -
Laure - 27.10.2012
The code lining is wrong.
Re: errors, but things seem fine -
_Khaled_ - 27.10.2012
Dude, don't define everything twice
Playername and String, are defined over 3 times in the script