Szerző Téma: 4 Error.  (Megtekintve 514 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
4 Error.
« Dátum: 2012. november 21. - 21:36:18 »
0 Show voters
Üdv , az lenne a problémám hogy amikor a régi nmss módból nagy nehezen kiszedtem a verseny scriptet
már csak 1 sorra írja a hibákat.
Error:
 
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6720) : error 028: invalid subscript (not an array or too many subscripts): \"PlayerInfo\"
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6720) : warning 215: expression has no effect
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6720) : error 001: expected token: \";\", but found \"]\"
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6720) : error 029: invalid expression, assumed zero
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6720) : fatal error 107: too many error messages on one line
 
[/quote]
Sor:
 
            format(query, sizeof(query), \"UPDATE `racetimes` SET `holder` = \'%s\', `regid` = \'%d\', `minutes` = \'%d\', `seconds` = \'%d\', `time` = \'%d\' WHERE `race` = \'%s\'\", pname(playerid), PlayerInfo[playerid][pRegID], GetPVarInt(playerid, \"PlayerMinutes\"), GetPVarInt(playerid, \"PlayerSeconds\"), mktime(hour, minute, second, day, month, year), CRaceName);

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
4 Error.
« Válasz #1 Dátum: 2012. november 21. - 21:48:32 »
+1 Show voters

                               format(query, sizeof(query), \"UPDATE `racetimes` SET `holder` = \'%s\', `regid` = \'%d\', `minutes` = \'%d\', `seconds` = \'%d\', `time` = \'%d\' WHERE `race` = \'%s\'\", pname(playerid), PlayerInfo[playerid][pRegID], GetPVarInt(playerid, \"PlayerMinutes\"), GetPVarInt(playerid, \"PlayerSeconds\"), mktime(hour, minute, second, day, month, year), CRaceName));

 
Probáld így meg..  :)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
4 Error.
« Válasz #2 Dátum: 2012. november 21. - 21:55:06 »
0 Show voters
arra most már nem igazán jelez errort de most erre csinálja:
 

                    for(i = 0; i < m_month - 1; i++)
 

 

C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6511) : warning 219: local variable \"objective\" shadows a variable at a preceding level
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6646) : warning 202: number of arguments does not match definition
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6646) : warning 202: number of arguments does not match definition
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6646) : warning 202: number of arguments does not match definition
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6728) : error 017: undefined symbol \"i\"
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6728) : warning 205: redundant code: constant expression is zero
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6728) : error 017: undefined symbol \"i\"
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6728) : warning 215: expression has no effect
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6728) : error 001: expected token: \")\", but found \";\"
C:\\DOCUME~1\\x\\DOKUME~1\\LETLTS~1\\SAJTSC~1\\enr.pwn(6728) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
4 Errors.
 
[/quote]
« Utoljára szerkesztve: 2012. november 21. - 21:57:49 írta ZzzzzZ »

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
4 Error.
« Válasz #3 Dátum: 2012. november 21. - 21:56:34 »
+1 Show voters
for(i = 0; i < m_month - 1; i++)

 
helyett
 
for(new i = 0; i < m_month - 1; i++)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
4 Error.
« Válasz #4 Dátum: 2012. november 21. - 22:01:13 »
0 Show voters
Nagyon köszönöm ZyZu

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal