Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unerklärliches Problem in C

Empfohlene Antworten

Veröffentlicht

Ich habe eben etwas Source modifiziert und bekomme 3 Fehlermeldungen. Die erste ist mir total schleierhaft, die anderen beiden resultieren aus der ersten.

Bis zu der freien Zeile habe ich nichts verändert:

			clif_resurrection(&sd->bl, 1);

			if(battle_config.pc_invincible_time)

				pc_setinvincibletimer(sd, battle_config.pc_invincible_time);

			sc_start(&sd->bl,status_skill2sc(MO_STEELBODY),100,1,skill_get_time(MO_STEELBODY,1));

			if(map_flag_gvg(sd->bl.m))

				pc_respawn_timer(INVALID_TIMER, gettick(), sd->bl.id, 0);

			return 0;

		}

	}


	unsigned long var_premium = 0; //Zeile 5878

	if(SQL_ERROR == Sql_Query(sql_handle,"SELECT COUNT(*) FROM premium_acc WHERE account_id ='%d' && premium IN (1,3)",sd->status.account_id))

		Sql_ShowDebug(sql_handle);

	if(SQL_SUCCESS == Sql_NextRow(sql_handle)) {

		char* data;

		Sql_GetData(sql_handle, 0, &data, NULL);

		var_premium = strtoul(data, NULL, 10);

		Sql_FreeResult(sql_handle);

	}

	if(var_premium == 1) {
Fehlermeldungen:
4>dr scripting-server\src\map\pc.c(5878): error C2143: Syntaxfehler: Es fehlt ';' vor 'Typ'

4>dr scripting-server\src\map\pc.c(5884): error C2065: 'var_premium': nichtdeklarierter Bezeichner

4>dr scripting-server\src\map\pc.c(5887): error C2065: 'var_premium': nichtdeklarierter Bezeichner

Kann mir jemand sagen, was das für eine Fehlermeldung ist?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.