Hi
Ich bin im moment an meiner Include dran. Ich möchte dass es eine Library für die Funktionen gibt, also dass man die rechts in der spalte von Pawno sehen kann und der Syntax erkannt wird.
Ich habs so gemacht:
#pragma library CSRL-Objects
//CSRL-Natives
native LadeDaten();
native SaveDaten();
native ErstelleObjekte();
Das bringt beim Compilen aber komigerweise errors und warns, obwohl es funzt. Also es wird in Pawno angezeigt.
Das sind die errors:
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(27) : error 021: symbol already defined: "LadeDaten"
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(28) : error 021: symbol already defined: "SaveDaten"
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(29) : error 021: symbol already defined: "ErstelleObjekte"
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(63) : error 021: symbol already defined: "LadeDaten"
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(65) : error 010: invalid function or declaration
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(69) : error 021: symbol already defined: "samp_mysql_select_db"
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(73) : error 010: invalid function or declaration
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(105) : error 010: invalid function or declaration
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(108) : error 021: symbol already defined: "SaveDaten"
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(110) : error 010: invalid function or declaration
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(112) : error 021: symbol already defined: "var"
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(117) : error 010: invalid function or declaration
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(147) : error 010: invalid function or declaration
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(150) : error 021: symbol already defined: "ErstelleObjekte"
D:\Rockstar Games Server\GTA San Andreas 0.3\pawno\include\CSRLobjects.inc(152) : error 010: invalid function or declaration
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(368) : warning 219: local variable "result" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3127) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3128) : warning 219: local variable "result" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3157) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3158) : warning 219: local variable "result" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3192) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3208) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3220) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3237) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3336) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3658) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(3661) : warning 219: local variable "result" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(4326) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(4357) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(4835) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(6172) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(7371) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(7397) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(7956) : warning 219: local variable "result" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(8168) : warning 219: local variable "var" shadows a variable at a preceding level
D:\Rockstar Games Server\GTA San Andreas 0.3\gamemodes\CSRLmysql.pwn(8249) : warning 219: local variable "result" shadows a variable at a preceding level
.
.
.
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
15 Errors.
Klammere ich die Natives aus, sind die errors und warns weg.
Woran liegt das?
MFG, Robdeflop®