script error selfmate

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • script error selfmate

    gute tag ich habe eine frage was soll ich dar mache . habe wiegen mysql gemacht aber kommt diesen fehler.

    PAWN-Quellcode

    1. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(59) : error 001: expected token: "-identifier-", but found "-integer value-"
    2. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(62) : error 021: symbol already defined: "mysql_format"
    3. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(65) : error 021: symbol already defined: "TogglePlayerSpectating"
    4. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(66) : error 010: invalid function or declaration
    5. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(40) : warning 204: symbol is assigned a value that is never used: "Handle"
    6. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(40 -- 266) : warning 203: symbol is never used: "query"
    7. Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    8. 4 Errors.
    Alles anzeigen
  • PAWN-Quellcode

    1. #include <a_samp>
    2. #include <a_mysql>
    3. #include <md5>
    4. //Mysql Daten
    5. #define MYSQL_HOST "127.0.0.1"
    6. #define MYSQL_USER "root"
    7. #define MYSQL_DATA "tut"
    8. #define MYSQL_PASS ""
    9. new Handle;
    10. //Dialoge
    11. #define DIALOG_REGISTER 1
    12. #define DIALOG_CHAR1 2
    13. #define DIALOG_CHAR2 3
    14. #define DIALOG_CHAR3 4
    15. #define DIALOG_LOGIN 5
    16. //Farben
    17. #define gelb 0xFFFA00FF
    18. #define weiß 0xFAFAFAFF
    19. main()
    20. {
    21. print("\n----------------------------------");
    22. print(" [GRG]testserver");
    23. print("----------------------------------\n");
    24. }
    25. public OnGameModeInit()
    26. {
    27. //Gamemode
    28. SetGameModeText("[GRG] testserver");
    29. //Mysql Verbindung
    30. Handle=mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_DATA,MYSQL_PASS);
    31. if(mysql_errno() < 1)print("MYSQL: Die Verbindung wurde Erfolgreich hergestellt."),
    32. mysql_log(LOG_ALL);else print ("MYSQL: Die Verbindung zum mysql Server konnte nicht hergestellt werden. | Server wird heruntergefahren.");
    33. return 1;
    34. }
    35. public OnGameModeExit()
    36. {
    37. return 1;
    38. }
    39. public OnPlayerRequestClass(playerid, classid)
    40. {
    41. SetSpawnInfo(playerid,0,0,0,0,0,0,0,0,0,0,0,0);
    42. SpawnPlayer(playerid);
    43. return 1;
    44. }
    45. public 0(playerid)
    46. {
    47. new query[256];
    48. mysql_format(Handle, query, sizeof(query),"SELECT * FROM user WHERE Username='%e'",Spielername(playerid));
    49. mysql_tquery(Handle,query,"UserCheck,"i",playerid);
    50. ClearChat(playerid);
    51. TogglePlayerSpectating(playerid,1);
    52. return 1;
    53. }
    54. public OnPlayerDisconnect(playerid, reason)
    55. {
    56. return 1;
    57. }
    58. public OnPlayerSpawn(playerid)
    59. {
    60. ClearChat(playerid);
    61. SendClientMessage(playerid,gelb,"es Halt: Willkommen Auf LS-Airport wir wünschen ihnen einem schönen aufenhalt");
    62. SetPlayerPos(playerid,1614.8796,-2333.6069,13.5469);
    63. SetPlayerFacingAngle(playerid,1.0462);
    64. return 1;
    65. }
    66. public OnPlayerDeath(playerid, killerid, reason)
    67. {
    68. return 1;
    69. }
    70. public OnVehicleSpawn(vehicleid)
    71. {
    72. return 1;
    73. }
    74. public OnVehicleDeath(vehicleid, killerid)
    75. {
    76. return 1;
    77. }
    78. public OnPlayerText(playerid, text[])
    79. {
    80. return 1;
    81. }
    82. public OnPlayerCommandText(playerid, cmdtext[])
    83. {
    84. if (strcmp("/hilfe", cmdtext, true, 10) == 0)
    85. {
    86. //die Befehle kommen noch
    87. return 1;
    88. }
    89. return 0;
    90. }
    91. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    92. {
    93. return 1;
    94. }
    95. public OnPlayerExitVehicle(playerid, vehicleid)
    96. {
    97. return 1;
    98. }
    99. public OnPlayerStateChange(playerid, newstate, oldstate)
    100. {
    101. return 1;
    102. }
    103. public OnPlayerEnterCheckpoint(playerid)
    104. {
    105. return 1;
    106. }
    107. public OnPlayerLeaveCheckpoint(playerid)
    108. {
    109. return 1;
    110. }
    111. public OnPlayerEnterRaceCheckpoint(playerid)
    112. {
    113. return 1;
    114. }
    115. public OnPlayerLeaveRaceCheckpoint(playerid)
    116. {
    117. return 1;
    118. }
    119. public OnRconCommand(cmd[])
    120. {
    121. return 1;
    122. }
    123. public OnPlayerRequestSpawn(playerid)
    124. {
    125. return 1;
    126. }
    127. public OnObjectMoved(objectid)
    128. {
    129. return 1;
    130. }
    131. public OnPlayerObjectMoved(playerid, objectid)
    132. {
    133. return 1;
    134. }
    135. public OnPlayerPickUpPickup(playerid, pickupid)
    136. {
    137. return 1;
    138. }
    139. public OnVehicleMod(playerid, vehicleid, componentid)
    140. {
    141. return 1;
    142. }
    143. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    144. {
    145. return 1;
    146. }
    147. public OnVehicleRespray(playerid, vehicleid, color1, color2)
    148. {
    149. return 1;
    150. }
    151. public OnPlayerSelectedMenuRow(playerid, row)
    152. {
    153. return 1;
    154. }
    155. public OnPlayerExitedMenu(playerid)
    156. {
    157. return 1;
    158. }
    159. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    160. {
    161. return 1;
    162. }
    163. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    164. {
    165. return 1;
    166. }
    167. public OnRconLoginAttempt(ip[], password[], success)
    168. {
    169. return 1;
    170. }
    171. public OnPlayerUpdate(playerid)
    172. {
    173. return 1;
    174. }
    175. public OnPlayerStreamIn(playerid, forplayerid)
    176. {
    177. return 1;
    178. }
    179. public OnPlayerStreamOut(playerid, forplayerid)
    180. {
    181. return 1;
    182. }
    183. public OnVehicleStreamIn(vehicleid, forplayerid)
    184. {
    185. return 1;
    186. }
    187. public OnVehicleStreamOut(vehicleid, forplayerid)
    188. {
    189. return 1;
    190. }
    191. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    192. {
    193. return 1;
    194. }
    195. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    196. {
    197. return 1;
    198. }
    199. //Anderes
    200. stock Spielername(playerid)
    201. {
    202. new name[MAX_PLAYER_NAME];
    203. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    204. return name;
    205. }
    206. stock ClearChat(playerid)
    207. {
    208. for (new i= 0;i<100;i++)
    209. {
    210. SendClientMessage(playerid,weiß,"");
    211. }
    212. return 1;
    213. }
    Alles anzeigen
  • so? aber habe gemacht aber immer noch der fehler

    PAWN-Quellcode

    1. public 0(playerid){ new query[256]; mysql_format(Handle, query, sizeof(query),"SELECT * FROM user WHERE Username='%e'",Spielername(playerid)); mysql_tquery(Handle,query,"UserCheck","i",playerid); ClearChat(playerid); TogglePlayerSpectating(playerid,1); return 1;

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von [RSS]kevin7372 () aus folgendem Grund: habe noch was vergessen zu schreiben

  • Einen Public sollte denke ich nicht als Zahl benannt sein, mach mal

    PAWN-Quellcode

    1. public CheckUser(playerid)
    2. {
    3. new query[256];
    4. mysql_format(Handle, query, sizeof(query),"SELECT * FROM user WHERE Username='%e'",Spielername(playerid));
    5. mysql_tquery(Handle,query,"UserCheck",i,playerid);
    6. ClearChat(playerid);
    7. TogglePlayerSpectating(playerid,1);
    8. return 1;
    9. }
    Die Kritik an anderen hat noch keinem die eigene Leistung erspart. – Noël Coward

    Folge mir auf Twitter
    Level Designer bei nanos.io
    Folge uns auf Twitter nanos.io & nanos.world
  • jetzt sind die error:

    PAWN-Quellcode

    1. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(59) : warning 235: public function lacks forward declaration (symbol "CheckUser")
    2. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(63) : error 017: undefined symbol "i"
    3. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(65) : warning 217: loose indentation
    4. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(66) : warning 217: loose indentation
    5. Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    6. 1 Error.
  • Versuch es mal so :P

    Quellcode

    1. forward CheckUser(playerid);
    2. public CheckUser(playerid)
    3. {
    4. new query[256];
    5. mysql_format(Handle, query, sizeof(query),"SELECT * FROM user WHERE Username='%e'",Spielername(playerid));
    6. mysql_tquery(Handle,query,"UserCheck","i",playerid);
    7. ClearChat(playerid);
    8. TogglePlayerSpectating(playerid,1);
    9. return 1;
    10. }
    Die Kritik an anderen hat noch keinem die eigene Leistung erspart. – Noël Coward

    Folge mir auf Twitter
    Level Designer bei nanos.io
    Folge uns auf Twitter nanos.io & nanos.world
  • es sind nur noch 2 warning

    PAWN-Quellcode

    1. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(66) : warning 217: loose indentation
    2. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(67) : warning 217: loose indentation
    3. Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    4. 2 Warnings.

  • ich verstehe das es nicht mehr ich habe noch mehr error:

    PAWN-Quellcode

    1. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(66) : warning 217: loose indentation
    2. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(67) : warning 217: loose indentation
    3. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 202: number of arguments does not match definition
    4. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 202: number of arguments does not match definition
    5. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 202: number of arguments does not match definition
    6. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 202: number of arguments does not match definition
    7. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 202: number of arguments does not match definition
    8. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 202: number of arguments does not match definition
    9. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 215: expression has no effect
    10. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 215: expression has no effect
    11. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 215: expression has no effect
    12. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 215: expression has no effect
    13. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 215: expression has no effect
    14. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : error 001: expected token: ";", but found ")"
    15. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : error 029: invalid expression, assumed zero
    16. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(264) : warning 215: expression has no effect
    17. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 202: number of arguments does not match definition
    18. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 202: number of arguments does not match definition
    19. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 202: number of arguments does not match definition
    20. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 202: number of arguments does not match definition
    21. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 202: number of arguments does not match definition
    22. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 202: number of arguments does not match definition
    23. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 215: expression has no effect
    24. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 215: expression has no effect
    25. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 215: expression has no effect
    26. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 215: expression has no effect
    27. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 215: expression has no effect
    28. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : error 001: expected token: ";", but found ")"
    29. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : error 029: invalid expression, assumed zero
    30. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutoial.pwn(270) : warning 215: expression has no effect
    31. Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    32. 4 Errors.
    Alles anzeigen




    mein script

    PAWN-Quellcode

    1. #include <a_samp>
    2. #include <a_mysql>
    3. #include <md5>
    4. //Mysql Daten
    5. #define MYSQL_HOST "127.0.0.1"
    6. #define MYSQL_USER "root"
    7. #define MYSQL_DATA "tut"
    8. #define MYSQL_PASS ""
    9. new Handle;
    10. //Dialoge
    11. #define DIALOG_REGISTER 1
    12. #define DIALOG_CHAR1 2
    13. #define DIALOG_CHAR2 3
    14. #define DIALOG_CHAR3 4
    15. #define DIALOG_LOGIN 5
    16. //Farben
    17. #define gelb 0xFFFA00FF
    18. #define weiß 0xFAFAFAFF
    19. main()
    20. {
    21. print("\n----------------------------------");
    22. print(" [GRG]testserver");
    23. print("----------------------------------\n");
    24. }
    25. public OnGameModeInit()
    26. {
    27. //Gamemode
    28. SetGameModeText("[GRG] testserver");
    29. //Mysql Verbindung
    30. Handle=mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_DATA,MYSQL_PASS);
    31. if(mysql_errno() < 1)print("MYSQL: Die Verbindung wurde Erfolgreich hergestellt."),
    32. mysql_log(LOG_ALL);else print ("MYSQL: Die Verbindung zum mysql Server konnte nicht hergestellt werden. | Server wird heruntergefahren.");
    33. return 1;
    34. }
    35. public OnGameModeExit()
    36. {
    37. return 1;
    38. }
    39. public OnPlayerRequestClass(playerid, classid)
    40. {
    41. SetSpawnInfo(playerid,0,0,0,0,0,0,0,0,0,0,0,0);
    42. SpawnPlayer(playerid);
    43. return 1;
    44. }
    45. forward CheckUser(playerid);
    46. public CheckUser(playerid)
    47. {
    48. new query[256];
    49. mysql_format(Handle, query, sizeof(query),"SELECT * FROM user WHERE Username='%e'",Spielername(playerid));
    50. mysql_tquery(Handle,query,"UserCheck","i",playerid);
    51. ClearChat(playerid);
    52. TogglePlayerSpectating(playerid,1);
    53. return 1;
    54. }
    55. public OnPlayerDisconnect(playerid, reason)
    56. {
    57. return 1;
    58. }
    59. public OnPlayerSpawn(playerid)
    60. {
    61. ClearChat(playerid);
    62. SendClientMessage(playerid,gelb,"es Halt: Willkommen Auf LS-Airport wir wünschen ihnen einem schönen aufenhalt");
    63. SetPlayerPos(playerid,1614.8796,-2333.6069,13.5469);
    64. SetPlayerFacingAngle(playerid,1.0462);
    65. return 1;
    66. }
    67. public OnPlayerDeath(playerid, killerid, reason)
    68. {
    69. return 1;
    70. }
    71. public OnVehicleSpawn(vehicleid)
    72. {
    73. return 1;
    74. }
    75. public OnVehicleDeath(vehicleid, killerid)
    76. {
    77. return 1;
    78. }
    79. public OnPlayerText(playerid, text[])
    80. {
    81. return 1;
    82. }
    83. public OnPlayerCommandText(playerid, cmdtext[])
    84. {
    85. if (strcmp("/hilfe", cmdtext, true, 10) == 0)
    86. {
    87. //die Befehle kommen noch
    88. return 1;
    89. }
    90. return 0;
    91. }
    92. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    93. {
    94. return 1;
    95. }
    96. public OnPlayerExitVehicle(playerid, vehicleid)
    97. {
    98. return 1;
    99. }
    100. public OnPlayerStateChange(playerid, newstate, oldstate)
    101. {
    102. return 1;
    103. }
    104. public OnPlayerEnterCheckpoint(playerid)
    105. {
    106. return 1;
    107. }
    108. public OnPlayerLeaveCheckpoint(playerid)
    109. {
    110. return 1;
    111. }
    112. public OnPlayerEnterRaceCheckpoint(playerid)
    113. {
    114. return 1;
    115. }
    116. public OnPlayerLeaveRaceCheckpoint(playerid)
    117. {
    118. return 1;
    119. }
    120. public OnRconCommand(cmd[])
    121. {
    122. return 1;
    123. }
    124. public OnPlayerRequestSpawn(playerid)
    125. {
    126. return 1;
    127. }
    128. public OnObjectMoved(objectid)
    129. {
    130. return 1;
    131. }
    132. public OnPlayerObjectMoved(playerid, objectid)
    133. {
    134. return 1;
    135. }
    136. public OnPlayerPickUpPickup(playerid, pickupid)
    137. {
    138. return 1;
    139. }
    140. public OnVehicleMod(playerid, vehicleid, componentid)
    141. {
    142. return 1;
    143. }
    144. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    145. {
    146. return 1;
    147. }
    148. public OnVehicleRespray(playerid, vehicleid, color1, color2)
    149. {
    150. return 1;
    151. }
    152. public OnPlayerSelectedMenuRow(playerid, row)
    153. {
    154. return 1;
    155. }
    156. public OnPlayerExitedMenu(playerid)
    157. {
    158. return 1;
    159. }
    160. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    161. {
    162. return 1;
    163. }
    164. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    165. {
    166. return 1;
    167. }
    168. public OnRconLoginAttempt(ip[], password[], success)
    169. {
    170. return 1;
    171. }
    172. public OnPlayerUpdate(playerid)
    173. {
    174. return 1;
    175. }
    176. public OnPlayerStreamIn(playerid, forplayerid)
    177. {
    178. return 1;
    179. }
    180. public OnPlayerStreamOut(playerid, forplayerid)
    181. {
    182. return 1;
    183. }
    184. public OnVehicleStreamIn(vehicleid, forplayerid)
    185. {
    186. return 1;
    187. }
    188. public OnVehicleStreamOut(vehicleid, forplayerid)
    189. {
    190. return 1;
    191. }
    192. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    193. {
    194. return 1;
    195. }
    196. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    197. {
    198. return 1;
    199. }
    200. //MYSQL Datenbanken Irgenwas
    201. forward UserCheck(playerid);
    202. public UserCheck(playerid)
    203. {
    204. new num_rows, num_fields;
    205. cache_get_data(num_rows,num_fields,Handle);
    206. SetPlayerVirtualWorld(playerid,1);
    207. if(num_rows == 0)
    208. {
    209. //reg
    210. ClearChat(playerid);
    211. ShowPlayerDialog(DIALOG_REGISTER),DIALOG_STYLE_PASSWORD,"Neuanfang","Herzlich Willkommen auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");
    212. }
    213. else
    214. {
    215. //log
    216. ClearChat(playerid);
    217. ShowPlayerDialog(DIALOG_REGISTER),DIALOG_STYLE_PASSWORD,"Einloggen","Herzlich Willkommen Zurück auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");
    218. }
    219. return 1;
    220. }
    221. //Anderes
    222. stock Spielername(playerid)
    223. {
    224. new name[MAX_PLAYER_NAME];
    225. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    226. return name;
    227. }
    228. stock ClearChat(playerid)
    229. {
    230. for (new i= 0;i<100;i++)
    231. {
    232. SendClientMessage(playerid,weiß,"");
    233. }
    234. return 1;
    235. }
    Alles anzeigen
  • PAWN-Quellcode

    1. ShowPlayerDialog(DIALOG_REGISTER),DIALOG_STYLE_PASSWORD,"Neuanfang","Herzlich Willkommen auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");

    zu:

    PAWN-Quellcode

    1. ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Neuanfang","Herzlich Willkommen auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");


    PAWN-Quellcode

    1. ShowPlayerDialog(DIALOG_REGISTER),DIALOG_STYLE_PASSWORD,"Einloggen","Herzlich Willkommen Zurück auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");

    zu:

    PAWN-Quellcode

    1. ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Einloggen","Herzlich Willkommen Zurück auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");



    PAWN-Quellcode

    1. TogglePlayerSpectating(playerid,1);

    Um ein Leerzeichen auf die gleiche Höhe wie ClearChat(playerid); setzen, sprich:

    PAWN-Quellcode

    1. ClearChat(playerid);
    2. TogglePlayerSpectating(playerid,1);

    zu:

    PAWN-Quellcode

    1. ClearChat(playerid);
    2. TogglePlayerSpectating(playerid,1);

    Beitrag von [RSS]kevin7372 ()

    Dieser Beitrag wurde von Eddy aus folgendem Grund gelöscht: Spam ().

    Beitrag von Spe4klezZ ()

    Dieser Beitrag wurde vom Autor gelöscht ().
  • habe neue fehler das ich nicht hinbekommen

    PAWN-Quellcode

    1. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutorial.pwn(215) : error 017: undefined symbol "kick"
    2. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutorial.pwn(217) : error 017: undefined symbol "stlin"
    3. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutorial.pwn(222) : error 001: expected token: ";", but found "}"
    4. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutorial.pwn(223) : warning 217: loose indentation
    5. Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    6. 3 Errors.



    mein script:

    PAWN-Quellcode

    1. #include <a_samp>
    2. #include <a_mysql>
    3. #include <md5>
    4. //Mysql Daten
    5. #define MYSQL_HOST "127.0.0.1"
    6. #define MYSQL_USER "root"
    7. #define MYSQL_DATA "tut"
    8. #define MYSQL_PASS ""
    9. new Handle;
    10. //playerinfo
    11. enum playerInfo{
    12. db_id,
    13. pEingeloggt,
    14. pNeuling,
    15. pAlter,
    16. pGeschlecht,
    17. pSkin,
    18. Float:pRussi,
    19. Float:pLeben
    20. };
    21. new pInfo[MAX_PLAYERS][playerInfo];
    22. //Dialoge
    23. #define DIALOG_REGISTER 1
    24. #define DIALOG_CHAR1 2
    25. #define DIALOG_CHAR2 3
    26. #define DIALOG_CHAR3 4
    27. #define DIALOG_LOGIN 5
    28. //Farben
    29. #define gelb 0xFFFA00FF
    30. #define weiß 0xFAFAFAFF
    31. main()
    32. {
    33. print("\n----------------------------------");
    34. print(" [GRG]testserver");
    35. print("----------------------------------\n");
    36. }
    37. public OnGameModeInit()
    38. {
    39. //Gamemode
    40. SetGameModeText("[GRG] testserver");
    41. //Mysql Verbindung
    42. Handle=mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_DATA,MYSQL_PASS);
    43. if(mysql_errno() < 1)print("MYSQL: Die Verbindung wurde Erfolgreich hergestellt."),
    44. mysql_log(LOG_ALL);else print ("MYSQL: Die Verbindung zum mysql Server konnte nicht hergestellt werden. | Server wird heruntergefahren.");
    45. return 1;
    46. }
    47. public OnGameModeExit()
    48. {
    49. return 1;
    50. }
    51. public OnPlayerRequestClass(playerid, classid)
    52. {
    53. SetSpawnInfo(playerid,0,0,0,0,0,0,0,0,0,0,0,0);
    54. SpawnPlayer(playerid);
    55. return 1;
    56. }
    57. forward CheckUser(playerid);
    58. public CheckUser(playerid)
    59. {
    60. new query[256];
    61. mysql_format(Handle, query, sizeof(query),"SELECT * FROM user WHERE Username='%e'",Spielername(playerid));
    62. mysql_tquery(Handle,query,"UserCheck","i",playerid);
    63. ClearChat(playerid);
    64. TogglePlayerSpectating(playerid,1);
    65. return 1;
    66. }
    67. public OnPlayerDisconnect(playerid, reason)
    68. {
    69. return 1;
    70. }
    71. public OnPlayerSpawn(playerid)
    72. {
    73. ClearChat(playerid);
    74. SendClientMessage(playerid,gelb,"es Halt: Willkommen Auf LS-Airport wir wünschen ihnen einem schönen aufenhalt");
    75. SetPlayerPos(playerid,1614.8796,-2333.6069,13.5469);
    76. SetPlayerFacingAngle(playerid,1.0462);
    77. return 1;
    78. }
    79. public OnPlayerDeath(playerid, killerid, reason)
    80. {
    81. return 1;
    82. }
    83. public OnVehicleSpawn(vehicleid)
    84. {
    85. return 1;
    86. }
    87. public OnVehicleDeath(vehicleid, killerid)
    88. {
    89. return 1;
    90. }
    91. public OnPlayerText(playerid, text[])
    92. {
    93. return 1;
    94. }
    95. public OnPlayerCommandText(playerid, cmdtext[])
    96. {
    97. if (strcmp("/hilfe", cmdtext, true, 10) == 0)
    98. {
    99. //die Befehle kommen noch
    100. return 1;
    101. }
    102. return 0;
    103. }
    104. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    105. {
    106. return 1;
    107. }
    108. public OnPlayerExitVehicle(playerid, vehicleid)
    109. {
    110. return 1;
    111. }
    112. public OnPlayerStateChange(playerid, newstate, oldstate)
    113. {
    114. return 1;
    115. }
    116. public OnPlayerEnterCheckpoint(playerid)
    117. {
    118. return 1;
    119. }
    120. public OnPlayerLeaveCheckpoint(playerid)
    121. {
    122. return 1;
    123. }
    124. public OnPlayerEnterRaceCheckpoint(playerid)
    125. {
    126. return 1;
    127. }
    128. public OnPlayerLeaveRaceCheckpoint(playerid)
    129. {
    130. return 1;
    131. }
    132. public OnRconCommand(cmd[])
    133. {
    134. return 1;
    135. }
    136. public OnPlayerRequestSpawn(playerid)
    137. {
    138. return 1;
    139. }
    140. public OnObjectMoved(objectid)
    141. {
    142. return 1;
    143. }
    144. public OnPlayerObjectMoved(playerid, objectid)
    145. {
    146. return 1;
    147. }
    148. public OnPlayerPickUpPickup(playerid, pickupid)
    149. {
    150. return 1;
    151. }
    152. public OnVehicleMod(playerid, vehicleid, componentid)
    153. {
    154. return 1;
    155. }
    156. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    157. {
    158. return 1;
    159. }
    160. public OnVehicleRespray(playerid, vehicleid, color1, color2)
    161. {
    162. return 1;
    163. }
    164. public OnPlayerSelectedMenuRow(playerid, row)
    165. {
    166. return 1;
    167. }
    168. public OnPlayerExitedMenu(playerid)
    169. {
    170. return 1;
    171. }
    172. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    173. {
    174. return 1;
    175. }
    176. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    177. {
    178. return 1;
    179. }
    180. public OnRconLoginAttempt(ip[], password[], success)
    181. {
    182. return 1;
    183. }
    184. public OnPlayerUpdate(playerid)
    185. {
    186. return 1;
    187. }
    188. public OnPlayerStreamIn(playerid, forplayerid)
    189. {
    190. return 1;
    191. }
    192. public OnPlayerStreamOut(playerid, forplayerid)
    193. {
    194. return 1;
    195. }
    196. public OnVehicleStreamIn(vehicleid, forplayerid)
    197. {
    198. return 1;
    199. }
    200. public OnVehicleStreamOut(vehicleid, forplayerid)
    201. {
    202. return 1;
    203. }
    204. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    205. {
    206. if(dialogid == DIALOG_REGISTER)
    207. {
    208. if(!response)return kick(playerid);
    209. SetPVarString(playerid,"passwortvar",inputtext);
    210. if(stlin(inouttext) >=4)
    211. {
    212. ShowPlayerDialog(playerid,DIALOG_CHAR1,DIALOG_STYLE_MSGBOX,"Charackter 1/3","Welche Geschlecht bist du?","Männlich","Weiblich")
    213. }
    214. else
    215. {
    216. ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Neuanfang","Herzlich Willkommen \n{FF0000}Fehler:Eingabe ist Falsch\n auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");
    217. }
    218. }
    219. if(dialogid == DIALOG_CHAR1)
    220. {
    221. if(response)
    222. {
    223. //männ
    224. pInfo[playerid][pGeschlecht]=1;
    225. ShowPlayerDialog(playerid,DIALOG_CHAR2,DIALOG_STYLE_LIST,"Charackter 2/3","hat du die Regeln gelesen?\nJa\nNein\nWas es gibt Regeln?","Weiter","Abbrechen");
    226. }
    227. else
    228. {
    229. //weib
    230. pInfo[playerid][pGeschlecht]=2;
    231. ShowPlayerDialog(playerid,DIALOG_CHAR2,DIALOG_STYLE_LIST,"Charackter 2/3","hat du die Regeln gelesen?\nJa\nNein\nWas es gibt Regeln?","Weiter","Abbrechen");
    232. }
    233. }
    234. if(dialogid == DIALOG_CHAR2)
    235. {
    236. if(response)
    237. {
    238. }
    239. else
    240. {Kick(playerid);}
    241. }
    242. return 1;
    243. }
    244. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    245. {
    246. return 1;
    247. }
    248. //MYSQL Datenbanken Irgenwas
    249. forward UserCheck(playerid);
    250. public UserCheck(playerid)
    251. {
    252. new num_rows, num_fields;
    253. cache_get_data(num_rows,num_fields,Handle);
    254. SetPlayerVirtualWorld(playerid,1);
    255. if(num_rows == 0)
    256. {
    257. //reg
    258. ClearChat(playerid);
    259. ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Neuanfang","Herzlich Willkommen auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");
    260. }
    261. else
    262. {
    263. //log
    264. ClearChat(playerid);
    265. ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Einloggen","Herzlich Willkommen Zurück auf GRG server Bitte gebe dein gewünchtes password ein.","Weiter","Abrechen");
    266. }
    267. return 1;
    268. }
    269. //Anderes
    270. stock Spielername(playerid)
    271. {
    272. new name[MAX_PLAYER_NAME];
    273. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    274. return name;
    275. }
    276. stock ClearChat(playerid)
    277. {
    278. for (new i= 0;i<100;i++)
    279. {
    280. SendClientMessage(playerid,weiß,"");
    281. }
    282. return 1;
    283. }
    Alles anzeigen
  • Du musst auf die richtige Schreibweise achten und auch auf Groß/Klein.

    Mach aus kick(playerid); -> Kick(playerid);

    Desweiteren if(stlin(inouttext) >=4) zu if(strlen(inputtext) >=4)

    Edit:
    desweiteren fehlt bei 224 ein ; am Ende.
    ShowPlayerDialog(playerid,DIALOG_CHAR1,DIALOG_STYLE_MSGBOX,"Charackter 1/3","Welche Geschlecht bist du?","Männlich","Weiblich");


    „Auge um Auge - und die ganze Welt wird blind sein.“
    - Mahatma Gandhi
  • ich verstehe as nicht

    PAWN-Quellcode

    1. if(dialogid == DIALOG_CHAR2)
    2. {
    3. if(response)
    4. {
    5. }
    6. else
    7. {Kick(playerid);}
    8. }
    9. return 1;
    10. }
    11. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    12. {
    13. return 1;[pwn]
    14. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutorial.pwn(217) : error 017: undefined symbol "inouttext"
    15. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutorial.pwn(222) : error 001: expected token: ";", but found "}"
    16. C:\Users\kevin\Desktop\samp(KRP) server neu scripten 1\gamemodes\tutorial.pwn(223) : warning 217: loose indentation
    17. Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    18. 2 Errors.
    Alles anzeigen

    [/pwn]